Im having some trouble building a simple test app. My behavior:
1. The user place a marker on a map, either manually or via a simple geocoder text field 2. I do a geocode request sending the marker latLng 3. I filter the results taking only the items having type 'locality' or 'sublocality'. 4. I have then to build a simple html form to let the user choose the result he want. My problem comes between the step 3 and 4, becose I need to have a unique [lat,lng] pairs for every locality (lets say two user place the marker both in San Francisco, but in different streets; I approximate to San Francisco and need its coords, not the coords from the marker). So, i tryed to make a geocoder request for every result of the first geocoder, but becose those requests are asynchronous im not able to build the form. This is my code: http://pastebin.com/PWDMf67R (i use pastebin for better formatting) I know i could first show the results to the first geocode to the user, and then do the second when he choose the locality, but i want to understand why my code doesnt work. Any idea? -- 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-v3@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.