On Sep 13, 1:05 am, Johan Arensman <
johanm...@gmail.com> wrote:
> Hello all,
>
> I have been experimenting with the code but I'm still unable to get an
> accurate result. Each address has an unique postal+house number so why can't
> I search for postal + house number with google maps?
>
> Greetings,
> Johan
>
>
>
> On Fri, Sep 10, 2010 at 2:34 PM, Johan Arensman <
johanm...@gmail.com> wrote:
> > Hello everyone,
>
> > We have a system that allows you to add addresses by only using a postal
> > code and a house number in the Netherlands.
>
> > I got it working but it's not pretty and far from accurate because I'm
> > using 3 geocode requests of which the first is impossible to do directly
> > with the number.
>
> > 1: geolocate postal + country such as "3267LP, The Netherlands"
> > 2: reverse geolocate the coords from step 1 for the extra information such
> > as street etc.
> > 3: geolocate the extended address.
>
> > But if I use the postal code in the above example, I end up on the
> > 'Gebrokendijk', I should be on 'Oude Nieuwlandsedijk'. This probably happens
> > because the first geolocation is done without a house number and the
> > 'center' or 'start' of this postal zone is closer to that street instead of
> > the correct one? (no expert here). Is there any way to create a working
> > geolocation with all the information i have (postal+housenumber+country) ?
>
> > Can you please tell me if there's another way to achieve this? I can't
> > change the input, i only got postal + house number.
>
> > Here is my code, I've removed any code not related to the geolocation and
> > added comments. I've also saved this snippet to jsbin: