OsrmRequest class abstract

OsrmRequest abstract class for all OSRM requests

Implementers

Constructors

OsrmRequest({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})
final
extraQueryParameters Map<String, dynamic>
extraQueryParameters method to get the extra parameters of the request
no setter
format OsrmFormat
format its not used in this SDK (always json)
final
hashCode int
The hash code for this object.
no setterinherited
parameters OsrmParameters?
parameters extra parameters for the request
final
profile OsrmRequestProfile
profile Specifies the mode of transportation, its OsrmRequestProfile
final
queryParameters Map<String, dynamic>
no setter
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
final
stringCoordinates String
no setter
version String
version Version of the protocol implemented by the service. v1 for all OSRM 5.x installations
final

Methods

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