Monday, May 20, 2024
37
rated 0 times [  42] [ 5]  / answers: 1 / hits: 6689  / 4 Years ago, tue, august 25, 2020, 12:00:00

So Im trying to use the Google GeolocationAPI. It sends the quest successfully and also authenticates successfully with my api key but it returns me this


    {
"error": {
"code": 404,
"message": "Requested entity was not found.",
"errors": [
{
"message": "Requested entity was not found.",
"domain": "global",
"reason": "notFound"
}
],
"status": "NOT_FOUND"
}
}

The url Im requesting to is https://www.googleapis.com/geolocation/v1/geolocate?key=MY_KEY with post as described in the documentation.


Thanks in advance


More From » google-geolocation

 Answers
2

I recommend you to check out the documentation:


As you can read:



Before you start developing with the Geolocation API, review the
authentication requirements (you need an API key) and the API usage
and billing information (you need to enable billing on your project).



I was getting the exact same error until my billing information was validated. How I realized it, was using the geocoding API, which does return a better error.


[#2812] Friday, August 21, 2020, 4 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
parker

Total Points: 259
Total Questions: 109
Total Answers: 97

Location: Zambia
Member since Thu, Jun 25, 2020
4 Years ago
;