Hello everybody,
I am experimenting with google geocoding. I have created a geocoding api key as described in this tutorial:
https://www.b4x.com/android/forum/threads/b4x-google-geocoding-rest-api.83870/
I also restricted the geocoding api key to my android application and specifically to Google Maps Geocoding API.
When I try to do reverse geocoding (coordinates to address) with the following code:
I get the following json:
What is the matter? I cannot figure out something.
Any help will be highly appreciated.
I am experimenting with google geocoding. I have created a geocoding api key as described in this tutorial:
https://www.b4x.com/android/forum/threads/b4x-google-geocoding-rest-api.83870/
I also restricted the geocoding api key to my android application and specifically to Google Maps Geocoding API.
When I try to do reverse geocoding (coordinates to address) with the following code:
B4X:
Dim hj As HttpJob
Dim sRet As String
hj.Initialize("Geocoding", Me)
hj.Download2("https://maps.googleapis.com/maps/api/geocode/json", _
Array As String("latlng", latitude & "," & longidude,"key","AIzaSyA-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"))
I get the following json:
B4X:
{
"error_message" : "This IP, site or mobile application is not authorized to use this API key. Request received from IP address xx.x.xxx.210, with empty referer",
"results" : [],
"status" : "REQUEST_DENIED"
}
What is the matter? I cannot figure out something.
Any help will be highly appreciated.