Vikas Naranje
Vikas Naranje

Reputation: 2402

google suggested city name autocomplete

I'm trying to build a web page in which I want to use google suggested city/state name combinations when user starts typing their address, it auto completes the city and state just like in google maps.

For reference visit this URL:

Google Maps

When someone start typing in top left green A box. it gives you auto suggested list.

Can any one help me do the same thing for my web site? Or is there such google api exist that I can use?

Thanks

Upvotes: 8

Views: 17968

Answers (3)

Don
Don

Reputation: 11

Is there a reason it has to be google suggested names?

Here's an api that provides autocomplete for city names plus a lot of extra data you can squeeze out about the city (population, life quality data, even photo)

http://developers.teleport.org/api/

more specifically the widget http://developers.teleport.org/api/autocomplete_widget/

Upvotes: 1

Sander
Sander

Reputation: 13431

google does not provide such a service for autosugest, google does have a service for getting the geocodes and more, when you have the full address.

take a look in this post, where i had the same issue, i'm looking for a service that gives me the city names and addresses

there was a suggestion from someone to use geonames.com as a service, but i'm not sure they have streetnames as well...

Upvotes: 0

Related Questions