Hi,

I'm working on a webpage where a user needs to select a city by
clicking on an area in google maps. I'm using the GClientGeocoder
object to perform a "reverse geocoding" on the clicked location.

I found out that the return value (Placemark object) can contain the
postalcode and locality name in many different structures. And in some
cases, the object doesn't even contain a postal code.

Example:
{
    "id": "p1",
    "address": "Bornem, 2880 Bornem, Belgiƫ",
    "AddressDetails": {
        "Accuracy": 4,
        "Country": {
            "AdministrativeArea": {
                "AdministrativeAreaName": "Vlaams Gewest",
                "SubAdministrativeArea": {
                    "Locality": {
                        "DependentLocality": {
                            "DependentLocalityName": "Bornem"
                        },
                        "LocalityName": "Bornem"
                    },
                    "SubAdministrativeAreaName": "Antwerpen"
                }
            },
            "CountryName": "Belgiƫ",
            "CountryNameCode": "BE"
        }
    },
    "ExtendedData": {
        "LatLonBox": {
            "north": 51.1276965,
            "south": 51.0716417,
            "east": 4.298899,
            "west": 4.1708396
        }
    },
    "Point": {
        "coordinates": "[4.2348693,51.0996776,0]"
    }
}

So, place.address does contain both locality and postalcode, but
place.addressDetail does not... What gives ?


Thx for your replies,
Mathew

--

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=.


Reply via email to