Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Address suggestions by google maps

Does somebody know if there is any way to reproduce an ajax suggestion box like http://maps.google.com/ have in my webpage using the google maps api?

The idea would be for example if somebody writes down "15 Avenue" a list of suggestions:

"15 Avenue of the Americas, New York, NY, United States"

"15 Avenue of the Stars, Los Angeles, CA, United States"

Etc

Just a yes no qustion =)

Thanks

like image 882
Saikios Avatar asked Dec 22 '22 10:12

Saikios


1 Answers

Yes.

Look at the geocode response for "15 Avenue"...

http://maps.googleapis.com/maps/api/geocode/json?address=15+Avenue&sensor=false

You get a list of possible results that you can put in a dropdown.

like image 87
Galen Avatar answered Dec 26 '22 12:12

Galen