ubilabs / geocomplete

jQuery Geocoding and Places Autocomplete Plugin
http://ubilabs.github.com/geocomplete/
MIT License
1.22k stars 408 forks source link

City not loaded #333

Open danicarla opened 7 years ago

danicarla commented 7 years ago

Hi guys... I'm finding an error the city is not loaded See in: http://ubilabs.github.io/geocomplete/examples/form.html

I try with this Address "Av. Paulista - Bela Vista, São Paulo - SP, Brasil" Apparently this error happens only with addresses of Brazil

error

bahiamartins commented 7 years ago

Just solved. Change your input field from 'locality' to 'administrative_area_level_2'. Example:

<input id="id_city" name="administrative_area_level_2" type="text">

CarlosAlbertoSantos commented 7 years ago

I have the same issue. The solution above does work for me.