在Google Directions API中避免=收费的问题 [英] Questions on avoid=tollroads in Google Directions API

查看:229
本文介绍了在Google Directions API中避免=收费的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google Directions API上有几个问题。


  1. 避免Google Directions API中的收费方法完全避免部分收费公路?或者是否足够聪明地知道有部分收费公路可以通过的路线,但实际上并未到达需要收费公路支付的部分收费公路的部分(例如,如果它注意到路线退出部分收费公路在它到达你需要支付的部分之前)?


  2. 如果要从A到B,必须按顺序穿过收费公路到达目的地,使用避免=收费公路时,它是否仍然返回含有必要收费公路的路线,否则它将不会返回结果?


感谢:)

解决方案


  1. 合理时避免收费,而不是优先考虑。为避免收费而花费较长时间(绕行)的绕道路线不一定(或甚至可能)会在使用 avoid = tolls 时包含的路线之间。这也适用于部分收费路线。

  2. 是的。正如在上述情况下不能避免收费一样,它们当然不会出现一个难以到达目的地的地方。


I have a few questions on the Google Directions API.

  1. Does avoid=tollroads in Google Directions API completely avoids partial toll roads? Or is it smart enough to know that there are routes that can go on partial toll roads but doesn't actually get to the parts on the partial toll roads that require toll road payments (for example if it notices the route exits the partial toll road before it gets to the part where you need to pay)?

  2. If in order to get from A to B, you have to cross a toll road in order to get to the destination, when using avoid=tollroads, will it still return routes with that necessary toll road in it or will it return no results?

Thanks :)

解决方案

  1. No. Tolls are avoided when reasonable, not as a top priority. Taking a detour that takes much longer (time) just to avoid tolls is not necessarily (or even likely) going to be among the routes included when using avoid=tolls. This also applies to routes with partial tolls.
  2. Yes. Just as tolls are not avoided in the situation above, they'll certainly won't present an obstable to reach a destination.

这篇关于在Google Directions API中避免=收费的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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