SpeedLimit class

Represents the speed limit of the current road.

Speed limits that are described as conditional can be time-dependent. For time-dependent speed limits, the HERE SDK internally reads the current device time and notifies only on speed limits that are currently active.

It is recommended to use SpeedLimit.effectiveSpeedLimitInMetersPerSecond when an application does not offer dedicated speed limit indicators for other cases, such as weather-dependent speed limits.

Constructors

SpeedLimit()

Properties

advisorySpeedLimitInMetersPerSecond ↔ double?
A recommended speed limit that may not be indicated on the local road signs, but that serves to warn a driver that the road conditions may indicate a lower speed. Typically, the road condition is a curved road or a ramp but it may be due to a narrow road, narrow bridge, intersecting road, drainage dip, etc. In some cases, the advisory sign is on a different road than the one for which it applies (this can happen with ramps). In this case, the advisory speed is indicated for the road for which it is intended, even if the sign is further than 50 meters from the particular road.
getter/setter pair
fogSpeedLimitInMetersPerSecond ↔ double?
A conditional speed limit as indicated on the local road signs. The road speed limit that is in effect only when the visibility decreases due to fog.
getter/setter pair
hashCode → int
The hash code for this object.
no setter
optimalWeatherSpeedLimitInMetersPerSecond ↔ double?
A conditional speed limit as indicated on the local road signs. The road speed limit that is in effect only when the visibility is optimal due to weather conditions.
getter/setter pair
rainSpeedLimitInMetersPerSecond ↔ double?
A conditional speed limit as indicated on the local road signs. The road speed limit that is in effect only when it is raining or there is water on the road.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schoolZoneSpeedLimitInMetersPerSecond ↔ double?
A conditional speed limit as indicated on the local road signs. School zone signs are often placed to slow drivers before reaching an intersection where children are crossing.
getter/setter pair
snowSpeedLimitInMetersPerSecond ↔ double?
A conditional speed limit as indicated on the local road signs. The road speed limit that is in effect only when there is snow on the road.
getter/setter pair
speedLimitInMetersPerSecond ↔ double?
Regular speed limit if available. In case of unbounded speed limit, the value is zero.
getter/setter pair
timeDependentSpeedLimitInMetersPerSecond ↔ double?
A conditional speed limit as indicated on the local road signs. Speed limit that is in effect considering the current local time provided by the device's clock.
getter/setter pair

Methods

effectiveSpeedLimitInMetersPerSecond() → double?
Returns the effective (lowest) speed limit between SpeedLimit.speedLimitInMetersPerSecond, SpeedLimit.schoolZoneSpeedLimitInMetersPerSecond, SpeedLimit.timeDependentSpeedLimitInMetersPerSecond and SpeedLimit.optimalWeatherSpeedLimitInMetersPerSecond.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.