如何确保遵循特定的谷歌地图的道路,而使用谷歌地图API?地图、道路、API

2023-09-06 07:56:59 作者:゛尐灰灰、濄于兲真╮

我想绘制道路的路径,并遵循一些特定points.I我使用谷歌API路线跟随roads.I把道路上的一些标记和polylines.I连接这些点,需要遵循红线,但它遵循并绘制蓝色lines.How我可以保证这一点?

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?

推荐答案

验证它是否是在路上都在放大。另外,还要确保ü可以在road.Sometimes道路这个方向行事是单向的,所以谷歌会自动从粉笔另一条路径。希望这有助于。

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.