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

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

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

另外,我们可以试图通过提供参数& avoid = highways 避免高速公路。

我想知道

它是& avoid = tolls | highways 如何提供避免收费和高速公路的参数?或& avoid = tolls,highways ?

解决方案

& avoid =过路费|高速公路

搜索avoid = tolls | highways | ferries: developers.google/maps/documentation/directions/

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

发布评论

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

>www.elefans.com

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