2

I'm working on a project that uses Google Maps APIs to reverse geocoding locations.

The customer is supposed to buy a licensed API key when rolling out to production.

Now I'm developing the application and I also need to test its functionality when using a valid, whether free or business, API key.

Let's pick a sample reverse geolocation request

https://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true

I have registered a developer account into https://code.google.com/apis/console/ and generated a server API key. Then I enabled Google Geolocation APIs and Google Maps API v3 (I think I need only the second).

When adding &key=XXX parameter to my previous request I get an error that the key is not valid.

Reading documentation with more attention, I discovered that the geolocation service I'm using is actually part of Maps Web Service APIs (Maps V3 APIs run on browser as Javascript). I tried to find those APIs into the Services list of my console but couldn't find anything more.

How do I use Google's reverse geocoding API with a business key for a project that will handle thousands of daily requests?

usr-local-ΕΨΗΕΛΩΝ
  • 26,101
  • 30
  • 154
  • 305
  • May be you find solution here http://stackoverflow.com/questions/18410485/where-to-place-api-key-for-google-geocoding-api – Jayasagar Nov 17 '13 at 08:40

1 Answers1

0

with no api key, the Google Geocoding API has the following limits in place: 2,500 requests per day. Google Maps API for Business customers have higher limits: 100,000 requests per day.

to use to API for Business you have to use URL signing, see https://developers.google.com/maps/documentation/business/webservices/auth

NB: If you're switching from the free API services to a Maps API for Business implementation, you must remove the key parameter from your requests. Google Maps API web services will deny requests made with both a client ID and a key.

  • Is it possible to obtain a **free** key that behaves exactly as the business key from the programming point of view? I only need to validate code. What I generated as "server key" has no private key associated so I can't implement the URL signing – usr-local-ΕΨΗΕΛΩΝ Oct 17 '13 at 08:23
  • According to docs: "For server and browser keys, add the key=your_key parameter in all requests to use the key, replacing your_key with the value shown in the "API key" section of the Console". So I'm using a valid server key (free usage tier) with key= parameter but Google refuses that – usr-local-ΕΨΗΕΛΩΝ Oct 17 '13 at 08:53