OSRMRoad class
Constructors
-
OSRMRoad({required double distance, required double duration, required String? polylineEncoded, List<
Route> ? alternativesRoads, List<LngLat> ? polyline = const <LngLat>[]}) -
const
- OSRMRoad.empty()
-
const
- OSRMRoad.fromOSRMJson({required Map route})
- OSRMRoad.minimize({required double distance, required double duration, String? polylineEncoded})
-
const
- OSRMRoad.withError()
Properties
-
alternativeRoads
→ List<
OSRMRoad> ? -
no setter
-
alternativesRoads
→ List<
Route> ? -
finalinherited
- canDrawRoad → bool
-
no setter
-
destinations
→ List<
String> -
no setter
- distance → double
-
this attribute is the distance of the route in km
finalinherited
- duration → double
-
this attribute is the duration of route in second
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
instructions
→ List<
RouteInstruction> -
finalinherited
-
polyline
→ List<
LngLat> ? -
this is list of geopoint of the route,this attribute is not null if geometry equal to geojson
except that use always polylineEncoded
finalinherited
- polylineEncoded → String?
-
this is the encoded list of lnglat that should decoded to get list of geopoint
this attribute can be null if the geometry == geojson
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addAlternativeRoute(
OSRMRoad road) → void -
copyWith(
{double? distance, double? duration, String? polylineEncoded, List< LngLat> ? polyline, List<Route> ? alternativesRoads, List<RouteInstruction> ? instructions}) → OSRMRoad -
override
-
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.
inherited