Google Maps v3 API AutoComplete Use First Result

The following script stores the first result from Google Maps v3 API AutoComplete into a hidden input, allowing you to do something with the autocomplete input field if the user decides to type their address instead of click a result. I’ve included only the extra code ontop of the normal autoComplete script.

https://gist.github.com/davidsword/b4969ddffee2bcdf659c79b541a259db


Leave a Reply

Your email address will not be published. Required fields are marked *