OsrmRoute class
OsrmRoute class for a route
Constructors
-
OsrmRoute({num? distance, num? duration, num? weight, String? weightName, OsrmGeometry? geometry, List<
OsrmRouteLeg> ? legs, String? voiceLocale, num? confidence}) -
OsrmRoute.fromMap(Map<
String, dynamic> json) -
fromMap method to get the OsrmRoute from a json map
factory
Properties
- confidence → num?
-
confidence confidence of the matching. float value between 0 and 1. 1 is very confident that the matching is correct.
final
- distance → num?
-
distance The distance traveled by the route, in float meters.
final
- duration → num?
-
duration The estimated travel time, in float number of seconds.
final
- geometry → OsrmGeometry?
-
geometry Depending on the geometries parameter this is a GeoJSON LineString or Polyline string representation of the route.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
legs
→ List<
OsrmRouteLeg> ? -
legs Array of RouteLeg objects that assemble the route. Each RouteLeg object contains information about the route between two waypoints.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- voiceLocale → String?
-
voiceLocale Locale of the returned turn-by-turn voice announcements. Can be used to influence the pronunciation of street names. The format should follow the IETF’s BCP 47 specification.
final
- weight → num?
-
weight The calculated weight of the route.
final
- weightName → String?
-
weightName The name of the weight profile used during extraction phase.
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 OsrmRoute as a json map
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited