You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Heu, on your server, no idea , it's definitely a lib for Android application, not for server. But if you want to draw it look at the class GDirectionsApiUtils and the method:
drawGDirection(GDirection direction, GoogleMap map, GDirectionMapsOptions mapsOptions) {
You have the algorithm implemented for the drawing.
Seriously, I have no idea how to implement this response from my server to draw directions on map. Can you please help me out?
"Directions": "{\r\n "status": "OK",\r\n "geocoded_waypoints": [\r\n {\r\n "geocoder_status": "OK",\r\n "place_id": "",\r\n "types": [\r\n "street_address"\r\n ]\r\n },\r\n {\r\n "geocoder_status": "OK",\r\n "place_id": "",\r\n "types": [\r\n "street_address"\r\n ]\r\n }\r\n ],\r\n "routes": [\r\n {\r\n "bounds": {\r\n "northeast": {\r\n "lat": 13.0473064,\r\n "lng": 80.239713299999991\r\n },\r\n "southwest": {\r\n "lat": 13.046232000000002,\r\n "lng": 80.23825\r\n }\r\n },\r\n "copyrights": "Monitor",\r\n "legs": [\r\n {\r\n "distance": {\r\n "text": "0 km",\r\n "value": 0\r\n },\r\n "duration": {\r\n "text": "0 mins",\r\n "value": 0\r\n },\r\n "start_address": "",\r\n "start_location": {\r\n "lat": 13.046470884885675,\r\n "lng": 80.23961293058106\r\n },\r\n "end_address": "",\r\n "end_location": {\r\n "lat": 13.047040699999998,\r\n "lng": 80.239713299999991\r\n },\r\n "traffic_speed_entry": [],\r\n "via_waypoint": [],\r\n "steps": [\r\n {\r\n "distance": {\r\n "text": "0 km",\r\n "value": 0\r\n },\r\n "duration": {\r\n "text": "0 mins",\r\n "value": 0\r\n },\r\n "start_location": {\r\n "lat": 13.046470884885675,\r\n "lng": 80.23961293058106\r\n },\r\n "end_location": {\r\n "lat": 13.047040699999998,\r\n "lng": 80.239713299999991\r\n },\r\n "html_instructions": "",\r\n "travel_mode": "DRIVING",\r\n "polyline": {\r\n "points": "mcsnAqxvhNn@Fw@fG_Dk@t@wF"\r\n }\r\n }\r\n ]\r\n }\r\n ],\r\n "overview_polyline": {\r\n "points": "mcsnAqxvhNn@Fw@fG_Dk@t@wF"\r\n },\r\n "summary": "",\r\n "warnings": [],\r\n "waypoint_order": []\r\n }\r\n ],\r\n "lastMovementStamp": 1506590236\r\n}"
The text was updated successfully, but these errors were encountered: