RoutingManager class
this class responsible to manage http call to get road from open-source osm server
or custom server that should be specified in constructor based on osrm project
contain only one public method getRoad
to make the call
and return Route object.
for more detail see : https://github.com/Project-OSRM/osrm-backend
configuration : (RoutingManagerConfiguration) represent the osm server config or any custom server that based of OSRM project
- Available extensions
Constructors
- RoutingManager({RoutingManagerConfiguration configuration = const RoutingManagerConfiguration()})
Properties
- configuration → RoutingManagerConfiguration
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- osrmClient → OSRMRoutingService
-
Available on RoutingManager, provided by the PrvRoutingManager extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- valhallaClient → ValhallaRoutingService
-
Available on RoutingManager, provided by the PrvRoutingManager extension
no setter
Methods
-
getRoute(
{required BaseRequest request}) → Future< Route> - getRoute
-
isOnPath(
Route road, LngLat currentLocation, {double tolerance = 0.1, int precision = 5}) → bool - isOnPath
-
nextInstruction(
List< RouteInstruction> instructions, Route road, LngLat currentLocation, {double tolerance = 0.1, int precision = 5}) → TurnByTurnInformation? - nextInstruction
-
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