orsm_dart library Null safety

Classes

LngLat
LngLat representative class of geographic point for longitude and latitude
OSRMManager
OSRMManager 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 Road object. for more detail see : https://github.com/Project-OSRM/osrm-backend server : (String) represent the osm server or any custom server that based of OSRM project
Road
RoadDetailInfo
RoadInstruction
RoadLeg

Extensions

TransformToWaysOSRM

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

Enums

DestinationGeoPointOption
Geometries
Overview
Profile
RoadType
SourceGeoPointOption