SpeedLimitInfo

open class SpeedLimitInfo : BaseNativeParcelable

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

Types

SpeedUnits
Link copied to clipboard
annotation class SpeedUnits

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
open fun describeContents(): Int
equals
Link copied to clipboard
open fun equals(o: Any): Boolean
getConditionSpeeds
Link copied to clipboard
open fun getConditionSpeeds(): List<SpeedLimitInfo.ConditionSpeed>
Returns array of special conditions relative to current speed limit.Special condition can be for example snow, rain, time restrictions, ...
getCountrySignage
Link copied to clipboard
open fun getCountrySignage(): Int
Returns info about speed limit signage based on country.
getCountrySpeedUnits
Link copied to clipboard
open fun getCountrySpeedUnits(): Int
Returns speed limit units for given country
getCurrentSpeed
Link copied to clipboard
open fun getCurrentSpeed(requiredSpeedUnits: Int): Int
Returns current speed of vehicle.
getNextSpeedLimit
Link copied to clipboard
open fun getNextSpeedLimit(requiredSpeedUnits: Int): Int
Returns speed limit value, which will be next on the route.
getNextSpeedLimitDistance
Link copied to clipboard
open fun getNextSpeedLimitDistance(): Int
Returns the distance to the next speed limit.
getSpeedLimit
Link copied to clipboard
open fun getSpeedLimit(requiredSpeedUnits: Int): Int
Returns the speed limit on route where is vehicle.When return value is 0, there is no information about speed limit.
hashCode
Link copied to clipboard
open fun hashCode(): Int
isInMunicipality
Link copied to clipboard
open fun isInMunicipality(): Boolean
Returns if current speed limit (and also vehicle) is in city
isValidParcelable
Link copied to clipboard
open fun isValidParcelable(): Boolean
If object after recreate from parcel contains all of reference like original object method returntrue.
toString
Link copied to clipboard
open fun toString(): String
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p: Parcel, p1: Int)
open fun writeToParcel(dest: Parcel, flags: Int)

Properties

CREATOR
Link copied to clipboard
val CREATOR: Parcelable.Creator<SpeedLimitInfo>
METERS_PER_MILE
Link copied to clipboard
val METERS_PER_MILE: Int