Question

I need to fetch the list of latitude and longitudes of a complete route to be used by pedestrians. I know i can get route segment points using the Google Directions API but problem comes when there is a turn in the route. I need very accurate direction navigation at step by step accuracy.

Thanks in advance.

Regards,

Wahib

Was it helpful?

Solution

Yes: it looks so messy to write script(Maybe it is answered only for display)

Please check minimum(j:p) of: distance(result.getDirections().routes[0].legs[0].steps[s].startpoint, result.getDirections().routes[0].overview_path[p]);

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top