Search code examples
google-mapsgoogle-maps-api-3gpsgoogle-maps-api-2

Google maps API get GPS coordinates


I try to get GPS coordinates of some places via Google Map API but it doesn't work. Here an example: http://maps.google.com/maps/geo?q=Hungary,%20Szeged&hl=en&key=MY_API_KEY Where is MY_API_KEY gets from the Google APIs Console. I have also switched on the Google Maps API v2, Google Maps API v3 and Google Maps Coordinate API. When I load the URL I get this:

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

610 means wrong API key. What am I doing wrong?


Solution

  • Don't use the deprecated v2 API, use the current Google Maps Geocoding API v3