Wednesday, February 2, 2011

[Google Maps API v2] Re: Postcodes

The exact postcode shows up in:

Marker: Long: 0.1112W : Lat: 51.515N : UK Grid: TQ310813 : Address: Westminster, London WC2A 1LR, UK 

This may only get a truncated postcode:
 
postcode = place.AddressDetails.Country.AdministrativeArea.SubAdministrativeArea.Locality.PostalCode.PostalCodeNumber;

but this gets a complete one where available:

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 google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate