开发者

Google Directions API not providing exact steps

开发者 https://www.devze.com 2023-04-09 13:04 出处:网络
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.

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

精彩评论

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