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-backendserver : (String) represent the osm server or any custom server that based of OSRM project
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
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