如何从谷歌地图地理编码API获取JSON请求


How to get JSON request from Google Maps Geocode API

由于某种原因,Google Maps Goeocode API的JSON请求不起作用。 如果在地址栏中键入此 URL:

http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway+Mountain+View+CA&sensor=false

它将返回以下内容:

{
   "results" : [],
   "status" : "OVER_QUERY_LIMIT"
}

请注意,该示例直接取自 Google 开发者网站:https://developers.google.com/maps/documentation/geocoding/。

如何检索 JSON 请求?

它不会将此返回给我。

您只是进行了太多查询。

请参阅 https://developers.google.com/maps/documentation/geocoding/#Limits

使用 Google 地理编码 API 的查询限制为 2,500 每天的地理位置请求。(Google Maps API for Business 的用户每天最多可以执行 100,000 个请求。

它只对你不起作用,因为你超过了谷歌地图API的限制。

您需要等待一段时间,获取新的IP地址或向Google付款。

有关限制、价格等的信息,请参阅 https://developers.google.com/maps/licensing。