简体   繁体   English

仅显示1条有关Google Maps embed API的方向

[英]Show only 1 direction for Google Maps embed API

For a school project we are making an application that can track the location of a garbage truck. 对于一个学校项目,我们正在开发一个可以跟踪垃圾车位置的应用程序。

To calculate the fastest direction for the truck we are using the Google Maps embed API, but there is one "problem". 为了计算卡车的最快行驶方向,我们使用了Google Maps embed API,但是有一个“问题”。 The API returns 3 optional directions but we only need one. 该API返回3个可选方向,但我们只需要一个即可。

Is there an possibility to show only one direction, or do we need the JavaScript API of Google Maps then? 有可能只显示一个方向,还是我们需要Google Maps的JavaScript API?

Thanks in advance. 提前致谢。

I suggest using the Google Maps JavaScript API. 我建议使用Google Maps JavaScript API。 I am using it for my website and it works like a charm, with many functionalities. 我正在将其用于我的网站,它就像一个具有许多功能的护身符。

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

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