Search code examples
google-app-enginegoogle-maps-api-3

Google Geocoding API - REQUEST_DENIED


Apparently I do not need a 'Maps API key' to use the 'Google Geocoding API' according to:

http://code.google.com/apis/maps/documentation/geocoding/index.html

However, I obtain this:

{
  "status": "REQUEST_DENIED",
  "results": [ ]
}

Does this mean that my IP is blocked? What can I do to overcome this?


Solution

  • Until the end of 2014, a common source of this error was omitting the mandatory sensor parameter from the request, as below. However since then this is no longer required:

    The sensor Parameter

    The Google Maps API previously required that you include the sensor parameter to indicate whether your application used a sensor to determine the user's location. This parameter is no longer required.


    Did you specify the sensor parameter on the request?

    "REQUEST_DENIED" indicates that your request was denied, generally because of lack of a sensor parameter.

    sensor (required) — Indicates whether or not the geocoding request comes from a device with a location sensor. This value must be either true or false