SpeedLimitInfo

class SpeedLimitInfo : Parcelable

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

Types

Companion
Link copied to clipboard
object Companion
ConditionSpeed
Link copied to clipboard
data class ConditionSpeed(condition: SpeedLimitInfo.ConditionSpeed.Condition, speed: Float, countrySpeedUnits: SpeedLimitInfo.SpeedUnits) : Parcelable

Class containing special conditions

SpeedUnits
Link copied to clipboard
enum SpeedUnits : Enum<SpeedLimitInfo.SpeedUnits>

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getCurrentSpeed
Link copied to clipboard
fun getCurrentSpeed(requiredSpeedUnits: SpeedLimitInfo.SpeedUnits): Int

Returns current speed of vehicle.

getNextSpeedLimit
Link copied to clipboard
fun getNextSpeedLimit(requiredSpeedUnits: SpeedLimitInfo.SpeedUnits): Int

Returns speed limit value, which will be next on the route.

getSpeedLimit
Link copied to clipboard
fun getSpeedLimit(requiredSpeedUnits: SpeedLimitInfo.SpeedUnits): 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 override fun hashCode(): Int
isInMunicipality
Link copied to clipboard
fun isInMunicipality(): Boolean

Returns if current speed limit (and also vehicle) is in city

toString
Link copied to clipboard
open override fun toString(): String
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

conditionSpeeds
Link copied to clipboard
val conditionSpeeds: List<SpeedLimitInfo.ConditionSpeed>

array of special conditions relative to current speed limit. Special condition can be for example snow, rain, time restrictions, ConditionSpeed

countrySignage
Link copied to clipboard
val countrySignage: Int

info about speed limit signage based on country. Currently are supported onl 2 values - World and America

countrySpeedUnits
Link copied to clipboard
val countrySpeedUnits: SpeedLimitInfo.SpeedUnits

speed limit units for given country SpeedUnits

currentSpeed
Link copied to clipboard
val currentSpeed: Float

current vehicle speed in kph

inMunicipality
Link copied to clipboard
val inMunicipality: Boolean

if current speed limit (and also vehicle) is in city

nextSpeedLimit
Link copied to clipboard
val nextSpeedLimit: Float

next speed limit after current in kph

nextSpeedLimitDistance
Link copied to clipboard
val nextSpeedLimitDistance: Int

the distance to the next speed limit in meters

nextSpeedLimitPosition
Link copied to clipboard
val nextSpeedLimitPosition: GeoCoordinates
speedLimit
Link copied to clipboard
val speedLimit: Float

current speed limit in kph