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.