Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need an help! #2

Open
venkateshj99 opened this issue Sep 28, 2017 · 1 comment
Open

Need an help! #2

venkateshj99 opened this issue Sep 28, 2017 · 1 comment

Comments

@venkateshj99
Copy link

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}"

@MathiasSeguy-Android2EE
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants