Google Maps Geocoding API V3 search ok with wifi but responses OVER_QUERY_LIMIT with data connection

前端 未结 2 1683
野趣味
野趣味 2021-01-07 06:22

My Google Maps activity searches for addresses with Google Maps Geocoding API V3.
I see that sometimes, even if I repeat the search multiple times in sequence, Google Ma

2条回答
  •  不思量自难忘°
    2021-01-07 07:00

    Your problem most probably resides in your mobile operator. The vast majority of operators use a technique called NAT overloading and assign the same external IP to a number of devices. If your operator assigns a very large number of devices to a single IP and a number of them uses similar services, everyone will have a problem, as all requests will appear to stem from the same IP.

    Your success with the 10*200ms requeries seems to be connected with the expiration of the OVER_QUERY_LIMIT flag from the server-side, as it is implied in this(Usage Limits for Google Maps API Web Services) document, which suggests that upon receiving this status, you should requery after 2secs to see if you exceeded your daily usage or you sent too many requests.

    This does not occur through wifi as your phone has its own, more-or-less unique IP.

提交回复
热议问题