Reputation: 4382
I'm using Google Directions API to get directions between 2 locations. I'm able to get the Webservice response (json) and draw a line over the map.
However, I noticed that the direction steps are quite less in the response thus making the lines not follow exact road curves. This is for any location, for example.
When I search the locations on Google Maps, I can see lines drawn exactly over road curves.
Upvotes: 1
Views: 395
Reputation: 4382
The steps received in the Webservice response are the turn points where the user's direction will change.
I now tried to get the polyline from the webservice response and extracted coordinates with code provided here. Problem resolved!
Upvotes: 1