OsrmGeneralRequest class
OsrmGeneralRequest General options for all OSRM requests.
- Inheritance
-
- Object
- OsrmRequest
- OsrmGeneralRequest
Constructors
-
OsrmGeneralRequest({required OsrmService service, String version = 'v1', OsrmRequestProfile profile = OsrmRequestProfile.car, required List<
OsrmCoordinate> coordinates, OsrmFormat format = OsrmFormat.json, OsrmParameters? parameters = const OsrmParameters()})
Properties
-
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
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
- stringCoordinates → String
-
no setterinherited
- version → String
-
version Version of the protocol implemented by the service. v1 for all OSRM 5.x installations
finalinherited
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