Google Directions API 中的限制如何避免收费和高速公路? [英] How to avoid both tolls and highways for Restrictions in Google Directions API?

查看:11
本文介绍了Google Directions API 中的限制如何避免收费和高速公路?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google Directions API 允许我们尝试 通过提供参数 &avoid=tolls 来避免收费.

此外,我们可以尝试通过提供参数&avoid=highways来避开高速公路.

我想知道如何提供避免收费和高速公路的论据?

&avoid=tolls|highways 还是 &avoid=tolls,highways ?

解决方案

&avoid=tolls|highways

在以下位置搜索avoid=tolls|highways|ferries":https://developers.google.com/maps/documentation/directions/p>

Google Directions API allows us to attempt to avoid tolls by supplying the argument &avoid=tolls.

Also, we can attempt to avoid highways by supplying the argument &avoid=highways.

I was wondering how do I supply the arguments for avoiding both tolls and highways?

Is it &avoid=tolls|highways or &avoid=tolls,highways ?

解决方案

&avoid=tolls|highways

Search for "avoid=tolls|highways|ferries" on: https://developers.google.com/maps/documentation/directions/

这篇关于Google Directions API 中的限制如何避免收费和高速公路?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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