com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo Class Reference
Inheritance diagram for com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo:
Collaboration diagram for com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo:

Classes

class  ConditionSpeed
 
interface  SpeedUnits
 

Public Member Functions

int getSpeedLimit (final @SpeedUnits int requiredSpeedUnits)
 
int getCurrentSpeed (final @SpeedUnits int requiredSpeedUnits)
 
boolean isInMunicipality ()
 
.CountrySignage int getCountrySignage ()
 
int getCountrySpeedUnits ()
 
int getNextSpeedLimit (final @SpeedUnits int requiredSpeedUnits)
 
int getNextSpeedLimitDistance ()
 
List< ConditionSpeed > getConditionSpeeds ()
 
int describeContents ()
 
void writeToParcel (final Parcel dest, final int flags)
 
boolean equals (Object o)
 
int hashCode ()
 
String toString ()
 
- Public Member Functions inherited from com.sygic.sdk.BaseNativeParcelable
boolean isValidParcelable ()
 

Static Public Attributes

static final int METERS_PER_MILE = 1609
 
static final Parcelable.Creator< SpeedLimitInfoCREATOR
 

Protected Member Functions

 SpeedLimitInfo (final Parcel in)
 

Additional Inherited Members

- Protected Attributes inherited from com.sygic.sdk.BaseNativeParcelable
boolean mIsValidParcelable = true
 

Detailed Description

Class containing information about speed limit. This class is passed as parameter in NavigationManager.OnSpeedLimitListener listener.

Constructor & Destructor Documentation

◆ SpeedLimitInfo()

com.sygic.sdk.navigation.routeeventnotifications.SpeedLimitInfo.SpeedLimitInfo ( final Parcel  in)
protected

Member Function Documentation

◆ 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
requiredSpeedUnitsIn 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
requiredSpeedUnitsIn 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
requiredSpeedUnitsIn 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 
)

Member Data Documentation

◆ 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: