MatchOptions class
MatchOptions Options for the match service.
- Inheritance
-
- Object
- OsrmRequest
- MatchOptions
Constructors
-
MatchOptions({String version = 'v1', OsrmRequestProfile profile = OsrmRequestProfile.car, required List<
OsrmCoordinate> coordinates, OsrmFormat format = OsrmFormat.json, OsrmParameters? parameters = const OsrmParameters(), bool steps = false, OsrmGeometries geometries = OsrmGeometries.polyline, OsrmAnnotation annotations = OsrmAnnotation.false_, OsrmOverview overview = OsrmOverview.simplified, List<int> timestamps = const [], List<int> radiuses = const [], OsrmGaps gaps = OsrmGaps.split, bool tidy = false, List<bool> waypoints = const []})
Properties
- annotations → OsrmAnnotation
-
annotations return annotations for each route leg for duration, nodes, distance, weight, datasources, speed
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
- gaps → OsrmGaps
-
gaps Allows the input track splitting based on huge timestamp gaps between points
final
- 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
-
radiuses
→ List<
int> -
radiuses maximum distance in meters that the coordinate is allowed to move when shifted in the map matching process
final
- 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
- tidy → bool
-
tidy remove coordinates which are not connected to the rest of the route
final
-
timestamps
→ List<
int> -
timestamps timestamps for each coordinate in seconds since the Unix epoch (January 1, 1970)
final
- version → String
-
version Version of the protocol implemented by the service. v1 for all OSRM 5.x installations
finalinherited
-
waypoints
→ List<
bool> -
waypoints an array with the same length as coordinates, an entry true indicates that the point must be matched, false indicates that the point should be omitted from the matching result (not yet implemented)
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