简体   繁体   中英

Using Maps Geocode API from Azure website without Business account?

When you have a business account for the Google Maps Geocode API, you have to specify an extra parameter, "client", in every call:

  http://maps.googleapis.com/maps/api/geocode/xml?latlng=...&sensor=false&client=....

This way, the API can identify the caller and use the corresponding quota limitations.

When you don't have a business account, the call is simply like this:
(ie. no "client" parameter)

  http://maps.googleapis.com/maps/api/geocode/xml?latlng=...&sensor=false

So, the only way the API identifies the caller is by the IP Address.

I want to use the Geocode API in a free Azure Website and I don't have a business API account. This means that I will be calling the API from a shared IP that all other free websites in Azure are using. Apparently, the number of requests done by Azure Websites is always exceeded, because I'm getting:

  <status>OVER_QUERY_LIMIT</status>

(In the first try)

Question: Is there a way to tell the API "who I am" so that I get my free quota (the same quota that I'm getting when I call the URL from my personal computer with my personal IP)?

If not, do you know any solution to this problem?

Use an API Key

Or use the client side geocoder

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM