How to ensure that follow specific google map road while using Google Map API?

一世执手 提交于 2020-01-23 16:53:06

问题


I am trying to draw a path on roads and follow some given points.I am using Google Directions API to follow the roads.I put some markers on roads and link these points with polylines.I need to follow the red line but it follows and draws blue lines.How can I ensure this?


回答1:


Verify if it is a road at all by zooming in. Also Make sure that u can tread in that direction in the road.Sometimes roads are one way, So google automatically chalks out an alternative path. Hope this helps.



来源:https://stackoverflow.com/questions/26161459/how-to-ensure-that-follow-specific-google-map-road-while-using-google-map-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!