OsrmParameters class
OsrmParameters Parameters for all OSRM requests.
Constructors
Properties
-
approaches
→ List<
List< ?OsrmApproach> > -
approaches Defines the approach to a coordinate in the list. Each element in this array is a list of two bearing values: the first is the
final
-
bearings
→ List<
List< ?num> > -
bearings Limits the search to segments with given bearing in degrees towards true north in clockwise direction. Can be used to filter out false matches caused by
inprecise GPS devices. This parameter is an array of the form
bearing,range
, where the first value is the bearing and the second value is the allowed range offinal -
classes
→ List<
String> ? -
classes Limits the search to the given road classes. Comma-separated list of the following classes: motorway, trunk, primary, secondary, tertiary, residential, unclassified, service, track, cycleway, path
final
-
exclude
→ List<
String> ? -
exclude Exclude certain road classes from routing. Comma-separated list of the following classes: toll, motorway, ferry, tunnel, ford
final
- generateHints → bool?
-
generateHints Returns additional metadata for each coordinate along the route geometry. Can also be used to force the tracepoint matching to be used for a specific coordinate.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hints
→ List<
String> ? -
hints Hints for each location of the form {hint};{hint};{hint}
;{hint} ...
. A hint is generated by the hint parameter in the response of a previous request. If thefinal -
radiuses
→ List<
num> ? -
radiuses Limits the search to given radius in meters. Can be used to implement distance filters. The parameter can be specified for every coordinate in the request.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
skipWaypoints
→ List<
bool> ? -
skipWaypoints Skips specified waypoints. Waypoints are separated by ;. The number of skip segments must be equal to the number of waypoints. The first waypoint can not be skipped.
final
- snapping → bool?
-
snapping Snap to the nearest road geometry (only available for the driving profile). Can be disabled by setting to false.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - toMap method to convert the parameters to a map
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited