如何确保遵循特定的谷歌地图的道路,而使用谷歌地图API? [英] How to ensure that follow specific google map road while using Google Map API?

查看:132
本文介绍了如何确保遵循特定的谷歌地图的道路,而使用谷歌地图API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想绘制道路的路径,并遵循一些特定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.

这篇关于如何确保遵循特定的谷歌地图的道路,而使用谷歌地图API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆