0

Succesfully integrate the map to my website but getting error for some geocode api. map loaded successfully Auto complete

Getting error for below api which I am calling from my website.

https://maps.googleapis.com/maps/api/geocode/json?key=<secret_key>&address=Delhi

The above api is giving me result as expected when I don't have any website restriction. Website restrictions API restrictions But once I restict api key for my website, I am getting error from google.

{
  error_message: "API keys with referer restrictions cannot be used with this API.",
  results: [],
  status: "REQUEST_DENIED"
}

Error response

I have whitelisted all possible combination for website restriction.

Expecting where am I missing for configuration. Dont want to restrict api key based on ip insted of website

Ashis
  • 1
  • 1

0 Answers0