11

The Geocoding v2 API stopped unexpectedly.

e.g. http://maps.google.com/maps/geo?q=27703&output=json&key=AIzaSyBVr3n3IVZzakGvtIWeRaJEXsC63JHZ0w8

I'm not able to get lat,long from the API. The output from server is:

{
  "Status": {
    "code": 610,
    "request": "geocode"
  }
}

I searched for status: 610 but could not find any relevant info.

Thanks.

djd
  • 4,988
  • 2
  • 25
  • 35
Shashank Degloorkar
  • 3,151
  • 4
  • 32
  • 50

2 Answers2

12

The service has been stopped.

It is the 8th of March.

See the top of this page for information on the death of v2

See The Google Geocoding API for v3

...

Edit.

Actually, there is a page about upgrading to v3 that may be of use.

...

Edit.

As just pointed out, the Geocoding API V2 deprecation timeline was just extended by another 6 months, but be careful of your usage.

From @FrVaBe's link: "Today we’re also reducing the limit on Geocoding API V2 from 15,000 requests per day to 2,500 requests per day, which is equivalent to the daily limit on the Geocoding API V3."

Rafe
  • 793
  • 6
  • 15
  • +1 for pointing out that unexpected behaviour could be expected since 2010 ;-) – FrVaBe Mar 08 '13 at 07:45
  • (facepalm) thanks for pointing out. will migrate to V3. Thanks – Shashank Degloorkar Mar 08 '13 at 07:54
  • 3
    Geocoding API V2 deprecation timeline was just [extended by another 6 month](http://googlegeodevelopers.blogspot.de/2013/03/an-update-on-geocoding-api-v2.html). – FrVaBe Mar 09 '13 at 09:30
  • Haha too many people got stuck in the same boat Shash did. Still, at least Shash knows to migrate now :) – Rafe Mar 09 '13 at 10:47
  • Looks like the bug is not related to the deprecation timeline. As @FrVaBe points out, it looks like the issue is with the key being used. – djd Mar 11 '13 at 05:10
  • is this usage limit is per api key or per ip? – Ab'initio Mar 14 '13 at 05:15
  • Afaik v3 does not require a key. So the limit would be by ip. Care should be taken if encoding server side or client side however. – Rafe Mar 17 '13 at 22:11
2

It seems that you are using Geocoding API V2. You can find the list of status codes here. The status you get is

610     G_GEO_BAD_KEY  
The given key is either invalid or does not match the domain for which it was given. 

So check to use the right API version (obvious V3 - V2 has been stopped as @Rafe mentions)

I never used this API but request should have this form

http://maps.googleapis.com/maps/api/geocode/output?parameters
FrVaBe
  • 47,963
  • 16
  • 124
  • 157