【问题标题】:Using Python with Google Maps and avoid coordinates将 Python 与 Google 地图一起使用并避免坐标
【发布时间】:2017-08-21 20:10:36
【问题描述】:

我想使用谷歌地图 api 获得 2 点之间的路线,但我也想避免它们之间的一些坐标。

我一直在研究这个功能,但我不知道是否可以完成这项工作。查看这些主题:

Is there a way to avoid a specific road or coordinate in Google Directions?

Avoid some coordinates in routes using Google Directions API Android

谁知道有没有可能?

谢谢

【问题讨论】:

    标签: python python-3.x google-maps


    【解决方案1】:

    Google Maps Distance Matrix API 中引入了避开功能,但它只能用于避开收费站、高速公路、渡轮和室内。

    您可以在其文档页面上查看此内容。

    https://developers.google.com/maps/documentation/distance-matrix/intro

    此功能非常受欢迎,以前曾在 Google 问题跟踪器中请求过。如果你真的需要它,你可以通过主演来支持它。

    https://issuetracker.google.com/issues/35816642

    【讨论】:

      猜你喜欢
      • 2018-03-23
      • 2011-01-28
      • 1970-01-01
      • 2011-10-12
      • 1970-01-01
      • 2014-11-14
      • 2015-07-04
      • 1970-01-01
      • 2021-08-11
      相关资源
      最近更新 更多