NextSpeedLimit class
Speed limit variation data.
Encapsulates information about upcoming speed limit changes during navigation, including the geographic coordinates where the change occurs, the distance to the change, and the new speed limit value.
Properties
coords: Geographic coordinates where the speed limit change begins.distance: Distance (in meters) from current position to the speed limit change.speed: New speed limit value (in current unit system).status: Availability status of the speed limit data (computed property).
Usage
This class is returned by NavigationInstruction.getNextSpeedLimitVariation
and should not be instantiated directly. Use the status property to determine
how to interpret the data.
- NavigationInstruction.getNextSpeedLimitVariation - Retrieves speed limit changes.
- NextSpeedLimitStatus - Status enumeration for speed limit availability.
Constructors
- NextSpeedLimit.new({required Coordinates coords, required int distance, required double speed})
-
NextSpeedLimit.fromJson(Map<
String, dynamic> json) -
Returns a simplified turn icon for the upcoming maneuver. For a detailed
geometry image, use
nextTurnDetails.abstractGeometryImg. Returns null Deserializes a JSON-compatible map to create an instance.factory
Properties
- coords ↔ Coordinates
-
Coordinates where the next speed limit begins
getter/setter pair
- distance ↔ int
-
Distance where the next speed limit begins
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speed ↔ double
-
Next speed limit value
getter/setter pair
- status → NextSpeedLimitStatus
-
The status of the availability of the next speed limit
no setter
Methods
-
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 ==(
covariant NextSpeedLimit other) → bool -
The equality operator.
override