Here are two examples - what I am trying to get is the full UK postcode.
Where there is full postcode the code below does not get it all and I
default to the full address as the postcode:
*Black Geocoder Marker: *Long: 0.0915W : Lat: 51.5159N : UK Grid: TQ324814
*Address: *City of London, London EC2V 5DH, UK
*Country Code: *GB
*Postcode/Zip: *City of London, London EC2V 5DH, UK
Where it is truncated without the last two letters, it gets it in the
place.address but not in the postcode extraction:
*Black Geocoder Marker: *Long: 0.0915W : Lat: 51.5154N : UK Grid: TQ324813
*Address: *Guildhall Buildings, City of London, EC2V 5, UK
*Country Code: *GB
*Postcode/Zip: *EC2V 5
This is my code to generate the postcode with the Google geocoder:
try { postcode =
place.AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.PostalCode.PostalCodeNumber;//alert(postcode);}catch(err){postcode
= place.address;}
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" 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.