OsrmRouteLeg class
OsrmRouteLeg class for a route leg
Constructors
-
OsrmRouteLeg({num? distance, num? duration, num? weight, String? summary, List<
OsrmRouteStep> ? steps}) -
OsrmRouteLeg.fromMap(Map<
String, dynamic> json) -
fromMap method to get the OsrmRouteLeg from a json map
factory
Properties
- distance → num?
-
distance The distance traveled by the route leg, in float meters.
final
- duration → num?
-
duration The estimated travel time, in float number of seconds.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
steps
→ List<
OsrmRouteStep> ? -
steps Array of RouteStep objects describing the turn-by-turn instructions of the route. Please note that even if the steps parameter is set to false this array will still contain a single element.
final
- summary → String?
-
summary Summary of the route taken as string. Depends on the steps parameter: if false, the summary will be a single string; if true, an array of strings for each step of the route leg.
final
- weight → num?
-
weight The calculated weight of the route leg.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toMap method to get the OsrmRouteLeg as a json map
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited