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

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

Class containing special conditions

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

Functions

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

Returns current speed of vehicle.

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

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

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.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun isInMunicipality(): Boolean

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

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

Properties

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

Link copied to clipboard
val countrySignage: Int

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

Link copied to clipboard
val countrySpeedUnits: SpeedLimitInfo.SpeedUnits

speed limit units for given country SpeedUnits

Link copied to clipboard
val currentSpeed: Float

current vehicle speed in kph

Link copied to clipboard
val inMunicipality: Boolean

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

Link copied to clipboard
val nextSpeedLimit: Float

next speed limit after current in kph

Link copied to clipboard
val nextSpeedLimitDistance: Int

the distance to the next speed limit in meters

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

current speed limit in kph