Google Geocoding API limit exceeded on cell network, but not on wifi

試著忘記壹切 提交于 2019-12-08 17:29:45

It worked in Wifi because you then use your own IP address and provider. In cellular network, you run the requests thru your provider, which generally uses an outgoing proxy. So when Google receive the request, it sees the IP of your provider's proxy for all their customers, not your own IP, unlike in the wifi case.

At least that's the conclusion I ended up with when I got a similar problem too, based on experience and packet capturing.

  • This means that every request that were executed from a cellular network run by your provider would be seem to come from the same IP for Google, thus increasing the number of requests for this given IP, at least from Google servers' point of view. So if both you, your neighbor and other millions of people using the same provider send a request to Google, and this provider use the same outgoing proxy, Google may seem to see the same IP for those millions of people/requests and will consider the quota limit to be reached.

  • If you run the request over your wifi network, you won't go thru your cellular network provider's outgoing proxy and will have your own outgoing IP, and will be able to do much more requests before seing the "LIMIT EXCEEDED" error, as only your own requests are counted.

I believe that in reality that's a bit more complex in fact: your provider probably have multiple outgoing proxies and uses load-balancing to dispatch their customer's requests on them, Google probably has a database knowing the main CN providers's proxies and adjust its quota limit accordingly, etc… but you see the idea.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!