Google Javascript API Geocoding Limits

后端 未结 5 1874
感动是毒
感动是毒 2021-01-30 01:18

What are the limits for client side geocoding with Google Maps JavaScript API v3?


My research:

  1. Google Maps PHP API has a limit of 2500 geocode reques
5条回答
  •  青春惊慌失措
    2021-01-30 01:42

    I asked this recently about the Places library (or rather, researched it and came to a conclusion):

    Regarding Places Library for Google Maps API Quota limits

    Basically, it seems that Map loads with key are limited to 25,000 per day per domain (that might not be right, but i'm pretty sure thats the case).

    Geocoding limits are limited in the following way:

    2,500 if you're using an API key without setting up billing 100,000 if you're using an API key and have set up billing

    If you're doing server-side geocoding (pre-caching results or similar), then your geocoding is per domain, and you're going to run out of requests pretty quickly. (i.e. in a similar vein to if you're doing places requests using the REST API like so: https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=500&types=food&name=harbour&sensor=false&key=XXXX)

    If you're using the javascript library, using the autocomplete functionality or PlacesService like so:

    service = new google.maps.Geocoder();
    

    then the limit (2,500 or 100,000 respectively), is per end-user, so your limit scales with your user base.

提交回复
热议问题