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.
On Nov 12, 7:34 pm, Mathieu Maes <mathieu.m...@gmail.com> wrote:
> 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.
This indicates to me that Belgian postal codes aren't available to the
geocoder, but are available to the reverse geocoder. What did you
actually do to get the output you posted?
> This indicates to me that Belgian postal codes aren't available to the
> geocoder, but are available to the reverse geocoder. What did you
> actually do to get the output you posted?
> Andrew
I can find a postal code most of the times (I currently need 3
different parsers because the postal code and locality are on 3
different places in the object), but in the case mentioned above I
can't find a postal code in the address details.
The weird thing is that the postal code is present in the "summarized"
address. I could try parsing that string instead, it would work, but
it would be bad practice imo.