Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A MooTools plugin based on Meio.Autocomplete that autocompletes a field with Google Local Search results and allows you to retrieve latitude, longitude, city and other info from the user's selection.
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Assets
Demo
Source
README.md

README.md

Meio.Autocomplete.Geo by Matti Schneider-Ghibaudo

Meio.Autocomplete.Geo - a MooTools plugin based on Meio.Autocomplete that autocompletes a field with Google Local Search results and allows you to retrieve latitude, longitude, city and other info from the user's selection.

How to use

First of all, you need to include all dependencies:

Then: var geocompleter = new Meio.Autocomplete.Geo('geoInput', { location: 'Paris, France' //though you could also pass a google.maps.LatLng instance });

That's it for geocompletion!

Now, if you want to know how to get latitude/longitude etc when the user selects an option, see the demo for a more complete example :)

If you want to customize anything in the autocompleter behavior, see Meio.Autocomplete.

Something went wrong with that request. Please try again.