routing_client_dart library

Classes

LngLat
LngLat representative class of geographic point for longitude and latitude
OSRMManager
OSRMManager
Road
Road
RoadDetailInfo
RoadInstruction
RoadLeg

Constants

earthRadius → const double

Functions

parseRoad(ParserRoadComputeArg data) Future<Road>
parseRoad this method used to parse json get it from route service to Road object we use this method in another thread like compute the data is ParserRoadComputeArg that will to be parsed to Road fix parsing problem #1 return Road object that contain list of waypoint and distance and duration of the road
parseToDouble(dynamic value) double
parseTrip(ParserTripComputeArg data) Future<Road>
parseTrip this method used to parse json get from trip service, the data is ParserTripComputeArg that contain information need it to be parsed to Road such as json map and language that will be instruction return Road object that contain list of waypoint and other information this road represent trip that will pass by all geopoint entered as args and this road will not be the shortes route

Typedefs

TurnByTurnInformation = ({RoadInstruction currentInstruction, double distance, RoadInstruction? nextInstruction})