Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make an autocomplete address field with google maps api?

Using Google Maps API and JQuery I would like to have an Address field that when typing it will autocomplete the address entered there. How this could be achieved?

like image 826
Esteban Feldman Avatar asked Oct 12 '09 15:10

Esteban Feldman


People also ask

Is Google address autocomplete API free?

Autocomplete without Place Details – Per Session (price starting at 0.017 USD per session)

How do I create an autocomplete search box in Google Maps?

Google Map with Autocomplete Search BoxCreate an input element ( searchInput ) where the autocomplete addresses search will be added. Create a DIV element ( map ) to display the Google Map. Specify the elements to display the geolocation data.


1 Answers

Well, better late than never. Google maps API v3 now provides address autocompletion.

API docs are here: http://code.google.com/apis/maps/documentation/javascript/reference.html#Autocomplete

A good example is here: http://code.google.com/apis/maps/documentation/javascript/examples/places-autocomplete.html

like image 73
alt Avatar answered Sep 29 '22 20:09

alt