Hello! I’am using Google Map’s GClientGeocoder for reversing map coordinates into string address. Exactly as shown in google’s example here http://code.google.com/apis/ajax/playground/?exp=maps#geocoding_reverse
But, I would like to remove LocalityName (place.AddressDetails.Country.AdministrativeArea.Locality.LocalityName) from place.address and have the address string without any LocalityName.
The straight way will be join all AddressDetails elements, excluding LocalityName. However order of the structure elements in final string representation is depends from geographical location.
For example:
Order for Australia city:
ThoroughfareName + “, ” + LocalityName + “ ” + AdministrativeAreaName + “ ” + PostalCodeNumber + “, ” + CountryName
Order for Russian city:
CountryName + “, ” + PostalCodeNumber + “, ” + LocalityName + “, ” +ThoroughfareName
Moreover PostalCodeNumber was not supplied in AddressDetails for the last example.
Please, help!