开发者

Google Directions API not providing exact steps

I'm using G开发者_JAVA百科oogle 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.


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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜