简体   繁体   English

Google Maps API(适用于Android):我能否获得*避免*航路点的路线?

[英]Google Maps API (for Android): Can I get directions to *avoid* a waypoint?

I see that there are decent instructions for setting directions going through one or more waypoints, but can is there a way to avoid a location? 我看到有不错的说明来设置通过一个或多个航路点的路线,但是有什么办法可以避开位置?

For example, let's say I am trying to get directions from Wichita, KS to Denver, CO (as here: https://goo.gl/oziVIS ). 例如,假设我正在尝试获取从堪萨斯州威奇托市到科罗拉多州丹佛市的路线(如下所示: https : //goo.gl/oziVIS )。 But let's say I want to avoid going through Byers, CO (the small town at the center of the map here: https://goo.gl/K1bDAh ). 但是,假设我要避免经过科罗拉多州拜尔斯市(位于地图中心的小镇: https//goo.gl/K1bDAh )。 Is there a way I can do through the Directions API (or maybe the Maps APIv2)? 有什么方法可以通过Directions API(或Maps APIv2)来完成?

I'd be happy with something like, "don't come within 10 miles of this lat/long". 我会对“不要在经纬度的10英里之内进入”之类的东西感到满意。

Apparently the answer is, "No" (or maybe "Not yet"). 显然答案是“否”(或者也许是“尚未”)。

Based on the comment above, and the feature request here: https://code.google.com/p/gmaps-api-issues/issues/detail?id=214 根据上面的评论以及此处的功能请求: https : //code.google.com/p/gmaps-api-issues/issues/detail?id=214

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM