Google Javascript API Geocoding Limits

后端 未结 5 1875
感动是毒
感动是毒 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:54

    Based on https://developers.google.com/maps/articles/geocodestrat,

    Client-side geocoding through the browser is rate limited per map session, so the geocoding is distributed across all your users and scales with your userbase.

    So, what is rate limits per map session?

    As geocoding limits are per user session, there is no risk that your application will reach a global limit as your userbase grows. Client-side geocoding will not face a quota limit unless you perform a batch of geocoding requests within a user session. Therefore, running client-side geocoding, you generally don't have to worry about your quota.

    Ok, what is the limit? Here we go

    https://developers.google.com/maps/documentation/business/articles/usage_limits

    With a rate limit or 10 QPS (queries per second), on sending the 11th request your application should check the timestamp of the first request and wait until 1 second has passed. The same should be applied to daily limits.

    Still not clear? me too.

    This is the closet answer that I found from their document and it says "rate limit of 10 requests per second"

    https://developers.google.com/maps/documentation/business/webservices/quota

    I don't think a user session can send 10 requests per second, thus I consider it as limitless.

提交回复
热议问题