I am trying to program geocoding. I created an API key, but when I add it to the code of my site, I get nothing, however, when I do not use the API, everything works fine. When I submit:
https://maps.googleapis.com/maps/api/geocode/json?address=".$adres."&key=KLUCZ_XXX
I get the answer:
Browser API keys cannot have referer restrictions when used with this API.
If I use:
https://maps.googleapis.com/maps/api/geocode/json?address=".$adres"
The result is correct, but the number of requests is limited per day.
Key restriction: HTTP (Web) referrals - installation in the domain from which the request is requested. The Google Maps Geocoding API is enabled.
Do I need to activate the API key elsewhere?
source share