0

我最近加入了一个团队,该团队正在开发一个维护带有地址的列表的应用程序。用户搜索并包含他们的邮政编码,应用程序会显示到每个列表的距离。目前我们为此使用 Google Maps API。阅读 StackOverflow 上的问题似乎表明这是最好的做事方式:

但是,在阅读 API 文档时,这似乎是明确禁止的,除非我们还为每个结果显示一个映射(也可能为我们过滤掉的每个结果,取决于您如何阅读以下语句):

Use of the Distance Matrix API must relate to the display of information on a Google Map; for example, to determine origin-destination pairs that fall within a specific driving time from one another, before requesting and displaying those destinations on a map. Use of the service in an application that doesn't display a Google map is prohibited.

https://developers.google.com/maps/documentation/distancematrix/

在不违反任何 API 条款的情况下实现此目的的最佳方法是什么?

4

1 回答 1

1

您是否考虑 Geo::PostalCode 模块(perl)?它使用 maxmind 数据库来计算位置之间的距离(并且有不同语言的绑定)。

于 2012-05-13T01:33:36.080 回答