On Dec 26, 10:44 am, thesanfelippo <[email protected]> wrote:
> When you enter in an address in google maps it returns location(s)
> with zip codes.
>
> Suppose you enter an address with no zip code & want to read the data
> returned in the first location, assuming there is more than one so as
> to compare the address entered with the address returned.  I've read a
> decent amount of the documentation on the Google maps API site but no
> luck in deciphering how this data can be accessed and manipulated.

Try looking at this example:
http://www.geocodezip.com/example_geo2.asp

http://www.geocodezip.com/example_geo2.asp?addr1=600%20Kinderkamack%20rd,%20Oradell,%20NJ&geocode=1

inside the callback function, this should contain the postcode of the
first location returned:
result.Placemark
[0].AddressDetails.Country.AdministrativeArea.Locality.PostalCode.PostalCodeNumber

Beware, there are reports that the returned format may vary.

  -- Larry

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to