How to ensure that follow specific google map road

2019-05-31 03:39发布

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?

enter image description here

1条回答
在下西门庆
2楼-- · 2019-05-31 04:07

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.

查看更多
登录 后发表回答