Google Directions API 中的限制如何避免收费和高速公路?

编程入门 行业动态 更新时间:2024-10-22 16:25:41
本文介绍了Google Directions API 中的限制如何避免收费和高速公路?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

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

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

解决方案

&avoid=tolls|highways

在以下位置搜索avoid=tolls|highways|ferries":developers.google/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: developers.google/maps/documentation/directions/

更多推荐

Google Directions API 中的限制如何避免收费和高速公路?

本文发布于:2023-10-29 08:08:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1539168.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:高速公路   Google   Directions   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!