Google Instant on your Maps

geo-autocompletegeo-autocomplete is a jQuery extension I wrote to convert any input field on a web page into an autocomplete field that suggests locations in real-time as you type. It’s like Google Instant for your Maps.

The location results are supplied by the Geocoding Service built into Google Maps API v3.

A thumbnail of each suggested location is also presented, using the Google Static Maps API v2, to help you quickly choose the right location.

The feedback from sites using geo-autocomplete has been really positive. It has been used as a solution for users to check the spelling of foreign locations, and also as a solution to quickly re-locate a map, as seen on GeoMeme.

Since I wrote the first version of geo-autocomplete, about a year ago, there have been a few feature requests, and some developments in jQuery and the Google APIs that can be taken advantage of, so it’s time for an upgrade.

The new geo-autocomplete is built on the new jQuery UI framework, as a jQuery UI Widget rather than a jQuery plugin.

Adding geo-autocomplete to an input field is now as simple as adding one line of Javascript, plus there are some new customization options available for power users.

Here’s the code, and you can play with some examples below. Start by typing location names into the input fields:

1. Basic use case; check the spelling of a location

Location:


2. Fast map re-location

Location:


3. Restricted to Country Names within Africa

Location:




This entry was posted in mobile geo social and tagged , , , , , . Bookmark the permalink.
  • http://hitching.net/2010/10/11/fresh-from-hitching-and-the-interwebs/ Fresh From @hitching and the Interwebs | mobile geo social

    [...] mobile geo social a blog by bob hitching Skip to content HomeAboutContactFresh From …GeoMeme ← Google Instant on your Maps [...]

  • http://topsy.com/hitching.net/2010/10/10/google-instant-on-your-maps/?utm_source=pingback&utm_campaign=L2 Tweets that mention Google Instant on your Maps | mobile geo social — Topsy.com

    [...] This post was mentioned on Twitter by bob hitching, Brian Flood. Brian Flood said: RT @hitching: new blog post: Google Instant on your Maps http://bit.ly/ayzsJ0 [...]

  • domi

    Hello,

    great extension, such an awesom handling. Is it also possible for reaching the Lat Lang values from the select function? I want to use the values for a circumcircle search, Ive only found the viewport as a return value.

    Thanks,
    domi

  • dlr

    This demo and those found on google code seems to be broken.

  • http://hitching.net hitching

    thanks for the report. it”s working for me on the browsers that i’ve got available as i write this. could you please submit a defect report on google code detailing which browser you are using and what you observe? thanks.

  • http://hitching.net/2011/01/11/fresh-from-hitching-and-the-interwebs/ Fresh From @hitching and the Interwebs | mobile geo social

    [...] PostsThe Next ChallengeGoogle Instant on your Maps5 Gadgets For RunningIn The Beginning… Was The Printing PressSocial Browsing on your iPhone with [...]

  • Bhushan

    Good info about Google Instant feature..I also posted an article about how google effectively killed i’m feeling button using it’s new instant feature..http://www.infiq.in/2010/09/google-just-effectively-killed-im.html

blog comments powered by Disqus