On Nov 8, 12:33 pm, fearless_fool <rdp...@gmail.com> wrote: > I'm afraid this may be a noobish javascript question more than a Google > Maps API v3 question, but: > > Assume the user types "8919 Manchester Drive" into a form, > clicks 'lookup'. Google Geocoder returns an array of results, including: > > 8919 Manchester Dr, Elkhart, IN 46514, USA > > 8919 Manchester Dr, Dallas, TX 75220, USA > > 8919 Manchester Dr, Fishers, IN 46038, USA > > ... > > I'd like to display this list of results with a button next to each > result that says [Use this one]. That part's easy. > > When the user clicks [Use this one], I need to post some data to my > server -- EITHER the full GeocoderResult for that address OR several > fields extracted from from that GeocoderResult (formatted_address, lat, > lng, street_address, postal_code). > > My noobish questions are: > > - which approach do you suggest (full GeocoderResult or extracted > fields)? > - if the former (GeocoderResult), can I get that as a JSON encoded > string? How? > - what Javascript programming pattern would you use for displaying / > posting the data? > > Thanks in advance. > > - ff
Does this (v2 API) example from Mike Williams' tutorial help? Part 23 Geocoding: Asking "Did You Mean?" http://econym.org.uk/gmap/didyoumean.htm -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.