jquery-addresspicker
jquery-addresspicker copied to clipboard
New address picker based on typeahead
I just wanted to share a new try of address picker based on the latest typeahead autocomplete of twitter: http://sgruhier.github.io/typeahead-addresspicker/
May the next version of this address picker :).
I used new google map API/Service too. They are much more powerful, with more parameters.
Yeah !! And it's work on IE 9 :)
I did a lot of work on the typeahead version. Now there is draggable marker and reverse geocoding
Hello,
Now, I want to localize the results. so if the user is in USA then as soon as he start typing in the field it started giving results from his location.
Ex: user is in Montclair, so when he start typing he will get address from montclair (specific to his country->region->city->street). Following is my code and snippet I am using currently. I want same like google map doing in search after allow location it's automatically return
here is js code: $(function() { var addresspickerMap = $( "#addresspicker_map" ).addresspicker({ regionBias: "us", language: "us", updateCallback: showCallback, elements: { map: "#map", lat: "#lat", lng: "#lng", street_number: '#street_number', route: '#route', locality: '#locality', sublocality: '#sublocality', administrative_area_level_3: '#administrative_area_level_3', administrative_area_level_2: '#administrative_area_level_2', administrative_area_level_1: '#administrative_area_level_1', country: '#country', postal_code: '#postal_code', type: '#type' } });
Any help will be appreciated :)