I have a question related to google auto complete API, my auto complete for addresses question accounts for all the addresses around US but I want the auto complete to show only the addresses for the zipcode that the user has selected on the previous step. Anyone has any idea on how to do that?
Thanks in advance.
Nancy
Create a form with zipcode and address fields, set disabled to the address fields
Get the address with Place(s) Autocomplete API by the zipcode
Assign the address the the input fields
Which part do you want to ask?
Related
Is there a way of having a search input where a user can type a city name and it only returns results that have a postal code?
For this particular situation we don't want the user to enter the full address.
The fields we need are City, Postal code and Country.
I know we can limit the results by setting the flag types=(cities) but when searching for city name the first results never include the postal_code.
I though of doing a reverse lookup with the provided city coordinates but some cities have more than one postal codes.
It's not currently possible to filter places from Place Autocomplete predictions on postal codes only.
However, there is an open feature request in Google's Issue Tracker which I suggest starring to increase visibility and subscribe to future notifications:
https://issuetracker.google.com/issues/35822067
Hope this helps!
I know it's possible to drop pins on a google map with the LAT/LONG variables. I was wondering if it's possible to drop pins with city/country fields. I have a registration form that allows the user to enter his address and wondering if any of those address variables (city, state, country, postal/zip code) can be used to create the pin on the map.. As opposed to asking the client to search and enter the LAT / LONG?
Thank you
You will need to use geocoding services to convert the address to a lat/long. You can try Google's API, or some other such as geocoder.us
I've crated one autosuggest textbox using google auto suggest. I am having city name entered by user.
I want to add its state name at the end of city automatically. i am using google maps auto suggest and google maps javascript API v3.
http://geo-autocomplete.googlecode.com/svn/trunk/demo/ui.demo.html
Please suggest ASAP.
That would be something like this:
placemark.AddressDetails.Country.AdministrativeArea.AdministrativeAreaName
I have integrated Google map auto complete into my application. When user types koramangala. He will get entire address. This is part of registration.
Can you please guide is it legal to store Google map auto complete address into my application?.
If it is not legal can any one tell me how i can proceed.(Instead of storing country,city,state all into my database).
Thanks and Regards,
Gokul
I've got a site where people can add their profile and on that page I ask them their address but I would like them to be able to use the google maps search that you find at http://maps.google.com/ to enter their address.
To give you a better understanding its for a charity group so when the charity group wants to have a event they want to enter they address of the event and then when users come on the event page they want to see the google map of the location.
So I want to make sure that when the charity add its event location and save it that when the user come to see the event map that google can understand the address that was entered by the charity. I can of want to have them (charity) to validate the address with google maps before they save it and this way they will be sure that the user will see it properly.
I'm using coldfusion cfmap to show the map and has you can see the var address_saved_by_charity will be populated by what the charity entered:
<cfmap name="eventLocation" centeraddress="[address_saved_by_charity]" zoomlevel="13" markerwindowContent="" width="600" overview="true" />
Why would someone type their address in google maps if they can just put it into your form? Do you need additional data from the Geolocation? If so, I can see how this is useful but you could always get the address from your own form fields and do a valid URL to call the api.
In any case you can look at Geocoding and the google maps api. Geocoding lets you get a position using "123 abc street city state" etc.
Hope that helps
Are you trying to get them to enter their current location or their home address? There are a lot of mobile users these days and their current location is not equal to their address. You can achieve either. Some things to look at are javascripts geolocation API and google maps v3 API. I recently have been working with these. Here are a few links to get you started:
http://blog.bobcravens.com/2010/10/trip-recorder-using-javascripts-geolocation-api-and-google-maps/
http://blog.bobcravens.com/2010/06/a-google-maps-version-3-jquery-plugin/
Hope this helps.
Bob