[Geocoding] Query with postcode response failure - yet postcode in response.
ekes
ekes at aktivix.org
Sun Aug 24 16:04:14 UTC 2014
Can anyone enlighten me on what the difference going on here is? Is the
postcode somehow available in the hierarchy, but at the same time
sometimes not? Or am I overlooking something really obvious?
The following query strings return:
?q=Pretoriusstraat 43-H, Amsterdam&format=json
...
display_name: "43-H, Pretoriusstraat, Oost-Watergraafsmeer, Amsterdam,
Stadsdeel Oost, Amsterdam, Stadsregio Amsterdam, North Holland, Kingdom
of the Netherlands, 1092EZ, The Netherlands",
-
But, despite that query returning 1092EZ on Pretoriusstraat
/?q=Pretoriusstraat, Amsterdam, 1092EZ&format=json
[]
-
So, obviously also,
?q=Pretoriusstraat 42-H, Amsterdam, 1092EZ&format=json
[]
But this isn't the case for all similar queries with a postcode on the
street,
-
Looking at the street
/?q=Pretoriusstraat, Amsterdam&format=json
...
"display_name": "Pretoriusstraat, Oost-Watergraafsmeer, Amsterdam,
Stadsdeel Oost, Amsterdam, Stadsregio Amsterdam, North Holland, Kingdom
of the Netherlands, 1092 JZ, The Netherlands",
"display_name": "Pretoriusstraat, Oost-Watergraafsmeer, Amsterdam,
Stadsdeel Oost, Amsterdam, Stadsregio Amsterdam, North Holland, Kingdom
of the Netherlands, 1092EX, The Netherlands",
display_name": "Pretoriusstraat, Oost-Watergraafsmeer, Amsterdam,
Stadsdeel Oost, Amsterdam, Stadsregio Amsterdam, North Holland, Kingdom
of the Netherlands, 1092CP, The Netherlands",
"display_name": "Pretoriusstraat, Oost-Watergraafsmeer, Amsterdam,
Stadsdeel Oost, Amsterdam, Stadsregio Amsterdam, North Holland, Kingdom
of the Netherlands, 1092CP, The Netherlands",
"display_name": "Pretoriusstraat, Linnaeusstraat, Oost-Watergraafsmeer,
Amsterdam, Stadsdeel Oost, Amsterdam, Stadsregio Amsterdam, North
Holland, Kingdom of the Netherlands, 1092CN, The Netherlands",
"display_name": "Pretoriusstraat, Tugelaweg, Oost-Watergraafsmeer,
Amsterdam, Stadsdeel Oost, Amsterdam, Stadsregio Amsterdam, North
Holland, Kingdom of the Netherlands, 1092 CL, The Netherlands",
-
Picking one that came up
?q=Pretoriusstraat, Amsterdam, 1092EX&format=json
...
"display_name": "Amsterdam, Stadsdeel Oost, Amsterdam, Stadsregio
Amsterdam, North Holland, Kingdom of the Netherlands, 1092EX, The
Netherlands",
-
So picking a house number in 1092EX. It works with the postcode?
?q=Pretoriusstraat 17-H, Amsterdam, 1092EX
"display_name": "17-H, Pretoriusstraat, Oost-Watergraafsmeer, Amsterdam,
Stadsdeel Oost, Amsterdam, Stadsregio Amsterdam, North Holland, Kingdom
of the Netherlands, 1092EX, The Netherlands",
More information about the Geocoding
mailing list