OsrmSource class

OsrmSource interface for the source of the requests This interface can be implemented by any class.

Constructors

OsrmSource({Client? client, Uri serverBuilder(OsrmRequest options)?, Duration timeout = const Duration(seconds: 20)})
OsrmSource constructor

Properties

client → Client
client the http client of the source
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverBuilder Uri Function(OsrmRequest options)
serverBuilder the builder of the server uri
final
timeout Duration
timeout the timeout of the source
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseResponse(String response) Map<String, dynamic>
parseResponse method to parse the response
request(OsrmRequest options) Future<Map<String, dynamic>>
request method to make the request and return the raw response
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited