On Jul 11, 1:42 pm, Josh <[email protected]> wrote: > Is there any defined function to get the address of a searched place? > I have a search box for users to type in addresses - if someone types > in a street address with state, that might be enough to pinpoint the > address. To obtain that point, Google then must know the proper > address - that is, one including state and ZIP code. To get this, I've > been geocoding that address to get a coordinate, and then reverse > geocoding it to get the nearest address. > > Is there any API function I may have overlooked that does this in a > cleaner way? Or is this the best way to do it?
If you use getLocations rather that getLatlng, it returns all kinds of information about the address in addition to the coordinates: http://code.google.com/apis/maps/documentation/services.html#Geocoding_Structured -- Larry > > Thanks in advance! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
