I created a Custom Maps-Field, entered a Google API (places + maps API active). Everything is working exept the autocomplete function. A field-ID is assigned but when tiping into this field I tells me always "No results found". Also if I hit "find adress" there is no result at all.
Can you help me further analysing this issue?
I'm using the latest WordPress with Gutenberg editor integrated.
If you see "No results found", then the autocomplete works. It queries to Google and no results found, it notices you about that.
Can you try setting the language or the region of the map? It might help to provide some results.
I've already set my language code (German) and also region code (de) but there is always the same result.
Is there something I can try further?
Hi Lukas, I've just tested again and couldn't replicate the bug. Here is my video: http://recordit.co/Fx18GnvJLK. Please check the API key or check the console if Google shows any warning/error.
Indeed there is a error in my console:
Kc https://maps.google.com/maps/api/js?key=AIzaSyAiYKhEzoNTshhryov1HwIcqp9JJlBW22E&language=de&libraries=places&ver=4.16.3:58 d https://maps.google.com/maps-api-v3/api/js/36/4/intl/de_ALL/geocoder.js:2 c https://maps.google.com/maps-api-v3/api/js/36/4/intl/de_ALL/common.js:67 <anonym> https://maps.googleapis.com/maps/api/js/GeocodeService.Search?4sd&7sde&9sde&callback=_xdc_._ngmsah&key=AIzaSyAiYKhEzoNTshhryov1HwIcqp9JJlBW22E&token=76138:1
I checked my API key and it seems ok.
Issue fixed: I activated Geocoding API and afterwards it was working.
What I did/checked additionally:
- Billing enabeled in Google Cloud Services and Project
- Places API activated
Oh, that's right. You need to enable Geocoding API to use the autocomplete feature. I should have mentioned that in the docs!