php - 我可以使用 Google API 查找最近的城市吗?

标签 php google-maps google-geocoding-api

我正在开发一个 php 项目,我想在其中从指定位置查找 100 KM 范围内的 3 个城市并将其存储到我的数据库中。我正在考虑为此进行 Google API 地理编码。我不知道我是否能够使用它。但是我在 Geocoding API 的条款和条件页面中找到了一行

the Geocoding API may only be used in conjunction with a Google map; geocoding results without displaying them on a map is prohibited.

这是什么意思?我可以使用 API 获取城市吗?有人知道吗?

最佳答案

在我看来,这是非常明确的:

是的,如果您要在 Google map 上显示最近的城市,您可以使用 Geocoding API。

不可以,如果您不在 Google map 上显示最近的城市,则不能使用 Geocoding API。

如果您将结果存储并在以后使用,则没有区别。

顺便说一句。请注意,雅虎具有相同的使用政策。

更新:您可以使用 GeoNameshere

关于php - 我可以使用 Google API 查找最近的城市吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10172084/

相关文章:

php - 如何将json转换为字符串

php - 如何在ajax中使用formData发送字符串?

google-maps - 有没有办法隐藏街道名称(google_maps_flutter)?

javascript - 在单个页面上加载多个谷歌地图

android - Android Geocoder 和 Google Geocoding 网络服务之间的不同结果

php - 我可以使用 2 个不同列中的信息来指定在 UPDATE 查询中更新信息的位置吗?

php graphQl "Field\"人\"argument\"id\"of type\"ID!\"is required but not provided.",

javascript - 如何根据所选半径显示谷歌地图

javascript - 单击标记时在信息窗口内显示数组中的内容

python - 谷歌地理编码 : points of interest within a specified radius