简体   繁体   English

如何从Google Maps Geocode API获取JSON请求

[英]How to get JSON request from Google Maps Geocode API

For some reason the JSON request for Google Maps Goeocode API isn't working. 由于某些原因,对Google Maps Goeocode API的JSON请求无法正常工作。 If you type this url in the address bar: 如果您在地址栏中输入以下网址:

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

It will return this: 它将返回此:

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

Note that example is taken directly from the Google Developers site: https://developers.google.com/maps/documentation/geocoding/ . 请注意,该示例直接取自Google Developers网站: https : //developers.google.com/maps/documentation/geocoding/

How can you retrieve the JSON request? 如何检索JSON请求?

It doesn't return this to me. 它不会把这个还给我。

You simply made too many queries. 您只是进行了太多查询。

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

Use of the Google Geocoding API is subject to a query limit of 2,500 geolocation requests per day.(User of Google Maps API for Business may perform up to 100,000 requests per day.) 使用Google Geocoding API每天最多可查询2500个地理位置请求(Google Maps API for Business用户每天可能最多执行100,000个请求。)

It only doesn't work for you since you exceeded the limit of the Google Maps API. 它对您不起作用,因为您超出了Google Maps API的限制。

You need to wait some time, get a new IP address or pay money to google. 您需要等待一段时间,获取新的IP地址或向Google付款。

See https://developers.google.com/maps/licensing for information on the limits, prices, etc. 有关限额,价格等的信息,请参见https://developers.google.com/maps/licensing

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

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