Class containing information about speed limit. This class is passed as parameter in NavigationManager.OnSpeedLimitListener listener.
◆ SpeedLimitInfo()
com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo.SpeedLimitInfo |
( |
final Parcel |
in | ) |
|
|
protected |
◆ describeContents()
int com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo.describeContents |
( |
| ) |
|
◆ equals()
boolean com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo.equals |
( |
Object |
o | ) |
|
◆ getConditionSpeeds()
List<ConditionSpeed> com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo.getConditionSpeeds |
( |
| ) |
|
Returns array of special conditions relative to current speed limit. Special condition can be for example snow, rain, time restrictions, ...
- Returns
- Array of ConditionSpeed objects
◆ getCountrySignage()
.CountrySignage int com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo.getCountrySignage |
( |
| ) |
|
Returns info about speed limit signage based on country. Currently are supported onl 2 values - World and America
- Returns
- Country signage
◆ getCountrySpeedUnits()
int com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo.getCountrySpeedUnits |
( |
| ) |
|
Returns speed limit units for given country
- Returns
- Speed limit units for given country
◆ getCurrentSpeed()
int com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo.getCurrentSpeed |
( |
final @SpeedUnits int |
requiredSpeedUnits | ) |
|
Returns current speed of vehicle.
- Parameters
-
requiredSpeedUnits | In which SpeedUnits will be speed returned |
- Returns
- Current speed of vehicle in required units
◆ getNextSpeedLimit()
int com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo.getNextSpeedLimit |
( |
final @SpeedUnits int |
requiredSpeedUnits | ) |
|
Returns speed limit value, which will be next on the route.
- Parameters
-
requiredSpeedUnits | In which SpeedUnits will be nex speed limit returned |
- Returns
- Next speed limit in required speed units
◆ getNextSpeedLimitDistance()
int com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo.getNextSpeedLimitDistance |
( |
| ) |
|
Returns the distance to the next speed limit.
- Returns
- Distance to next speed limit in m
◆ getSpeedLimit()
int com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo.getSpeedLimit |
( |
final @SpeedUnits int |
requiredSpeedUnits | ) |
|
Returns the speed limit on route where is vehicle. When return value is 0, there is no information about speed limit.
- Parameters
-
requiredSpeedUnits | In which SpeedUnits will be speed limit returned |
- Returns
- Speed limit on route in requested units
◆ hashCode()
int com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo.hashCode |
( |
| ) |
|
◆ isInMunicipality()
boolean com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo.isInMunicipality |
( |
| ) |
|
Returns if current speed limit (and also vehicle) is in city
- Returns
- If is in municipality
◆ toString()
String com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo.toString |
( |
| ) |
|
◆ writeToParcel()
void com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo.writeToParcel |
( |
final Parcel |
dest, |
|
|
final int |
flags |
|
) |
| |
◆ CREATOR
final Parcelable.Creator<SpeedLimitInfo> com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo.CREATOR |
|
static |
Initial value:= new Parcelable.Creator<SpeedLimitInfo>() {
@Override
public SpeedLimitInfo createFromParcel(final Parcel source) {
return new SpeedLimitInfo(source);
}
@Override
public SpeedLimitInfo[] newArray(final int size) {
return new SpeedLimitInfo[size];
}
}
◆ METERS_PER_MILE
final int com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo.METERS_PER_MILE = 1609 |
|
static |
The documentation for this class was generated from the following file: