On May 20, 3:58 pm, "[email protected]" <[email protected]>
wrote:
>
> Using if for any other purpose may not be a good idea...

Or at least, you need to use it in a way that might actually suit your
purpose.

If I look for "Via Parma, 00185 Roma", I get back a Placemark which
contains
AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.PostalCode.PostalCodeNumber="00184"

which allows me to verify that the user has probably entered the wrong
number.

You need to be careful when you quote examples. 40100 Roma yields a
postcode of 00185, which is where "Rome" geocodes to. In order to
check the postcode, you really need to include the address. As you
say, big cities can have many postcodes: how does the geocoder know
which one you are interested in?

(This assumes that 40100 is actually a valid postcode for Rome, which
I'm not convinced about: I think Rome postcodes are all 001xx)

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