RouteRequest class

RouteRequest Options for the route service.

Inheritance

Constructors

RouteRequest({String version = 'v1', OsrmRequestProfile profile = OsrmRequestProfile.car, required List<OsrmCoordinate> coordinates, OsrmFormat format = OsrmFormat.json, OsrmParameters? parameters = const OsrmParameters(), OsrmAlternative alternatives = OsrmAlternative.false_, bool steps = false, OsrmAnnotation annotations = OsrmAnnotation.speed, OsrmGeometries geometries = OsrmGeometries.geojson, OsrmOverview overview = OsrmOverview.simplified, OsrmContinueStraight continueStraight = OsrmContinueStraight.false_, List<OsrmWaypoint> waypoints = const []})

Properties

alternatives OsrmAlternative
alternatives search for alternative routes and return as well
final
annotations OsrmAnnotation
annotations return annotations for each route leg for duration, nodes, distance, weight, datasources, speed
final
continueStraight OsrmContinueStraight
continueStraight forces the route to keep going straight at waypoints constraining uturns there even if it would be faster
final
coordinates List<OsrmCoordinate>
coordinates String of format {longitude},{latitude};{longitude},{latitude};{longitude},{latitude} ... or polyline({polyline}) or polyline6({polyline6})
finalinherited
extraQueryParameters Map<String, dynamic>
extraQueryParameters method to get the extra parameters of the request
no setteroverride
format OsrmFormat
format its not used in this SDK (always json)
finalinherited
geometries OsrmGeometries
geometries return route geometry as polyline or geojson
final
hashCode int
The hash code for this object.
no setterinherited
overview OsrmOverview
overview add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all
final
parameters OsrmParameters?
parameters extra parameters for the request
finalinherited
profile OsrmRequestProfile
profile Specifies the mode of transportation, its OsrmRequestProfile
finalinherited
queryParameters Map<String, dynamic>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service OsrmService
service the service to use for the request its OsrmService
finalinherited
steps bool
steps return route steps for each route leg
final
stringCoordinates String
no setterinherited
version String
version Version of the protocol implemented by the service. v1 for all OSRM 5.x installations
finalinherited
waypoints List<OsrmWaypoint>
waypoints array of OsrmWaypoint objects
final

Methods

inject(String server) Uri
inject method to inject the parameters into the request url
inherited
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