谷歌地图v3反向地理编码有使用限制

时间:2013-05-22 12:54:58

标签: google-maps-api-3 reverse-geocoding

我不知道在哪里问,所以我希望这是这个地方

我想问一下google maps v3反向地理编码是否有限制!我问,因为使用Google地理编码API每天需要查询2,500个地理定位请求。

function codeLatLng(newPosition) {

    geocoder = new google.maps.Geocoder();


  var latlng = new google.maps.LatLng(newPosition.lat(), newPosition.lng());
  geocoder.geocode({'latLng': latlng}, function(results, status) 
  {
    if (status == google.maps.GeocoderStatus.OK) 
    {
      if (results[1]) 
      {

        formattedaddress = results[0].formatted_address;
        alert (formattedaddress);

      } 
      else 
      {
        alert('No results found');
      }
    } 

1 个答案:

答案 0 :(得分:1)

是。地理编码器和反向地理编码器都受到速率限制和配额限制。

如果超出,您的状态将为google.maps.GeocoderStatus.OVER_QUERY_LIMIT

相关问题