venugopal24 / geo-autocomplete

Automatically exported from code.google.com/p/geo-autocomplete
0 stars 0 forks source link

How to keep City, State, ZIP after selecting option in autocomplete? #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start typing in an address in the autocomplete field
2. Key your way down to the one you want to use
3. Press enter

What is the expected output? What do you see instead?
I would expect the whole address, including the City, State, and ZIP to be 
displayed in the <input> field.
Instead, I only see the street address which is ambiguous and is not what I 
want to save to the DB.

What version of the product are you using? On what operating system?
Latest version as of 4/02/2011 on Chrome or Firefox on Mac OS X.

Please provide any additional information below.
I'm guessing this can be set through an option?  I looked and tried different 
things but couldn't get it to work.

Original issue reported on code.google.com by icesar@gmail.com on 2 Apr 2011 at 3:31

GoogleCodeExporter commented 8 years ago
You can access the component "_data.formatted_address" in order to access the 
full address value.

Original comment by vnportnoy on 13 Apr 2011 at 5:57

GoogleCodeExporter commented 8 years ago
Hi 

How could I adjust ui.geo_autocomplete.js to show only the City, not the state ?

e.g. Brisbane - not Brisbane QLD ?

Thanks

Original comment by solhar...@gmail.com on 6 Jul 2011 at 6:44

GoogleCodeExporter commented 8 years ago
hi!

this is sophia, actually i have the same problem of 

I would expect the whole address, including the City, State, and ZIP to be 
displayed in the <input> field.
Instead, I only see the street address which is ambiguous and is not what I 
want to save to the DB.

an also i try to use "_data.formatted_address" in my html file but no output

plz tell where i use this "_data.formatted_address" stmt...        plz 

Original comment by minisha....@gmail.com on 30 Aug 2011 at 7:39