Try this query http://nominatim.openstreetmap.org/search?format=json&postalcode=45400&city=Fleury+les+aubrais&country=fr No result ! Now, without postalcode : http://nominatim.openstreetmap.org/search?format=json&city=Fleury+les+aubrais&country=fr 1 Good result (with postal code returned witch is 45400 !!) In fact, the query parameter "postalcode" don't work ;( asked 09 Jan '13, 20:55 fred727 edited 09 Jan '13, 21:33 scai ♦ |
One Answer:
This seems to be a bug in Nominatim Original answer: Try "postcode" not "postalcode". That returns something for me that looks plausibly JSON! answered 09 Jan '13, 21:04 SomeoneElse ♦ edited 19 Jan '13, 14:00 Sanderd17 showing 5 of 7 show 2 more comments |
The wiki also mentioned postalcode instead of postcode. I fixed it.
"postcode" is not a recognized parameter. The documentation speaks about "postalcode" only.
Replace "postcode" by anything else ('foo', 'bar', etc..) and you will see that the result will be the same !
I realy think there is a bug whith "postalcode" parameter. Is there a place tu submit bugs ?
There is - it's "trac" for the "nominatim" component. And yes, the second bug on that list at the time of writing is "Handle or ignore postal code", so it's already been logged.
@scai : you do a mistake. The good parameter is postalcode not postcode. Try this query : http://nominatim.openstreetmap.org/search?format=json&postcode=31330&city=Merville&country=fr "postcode" is specified with value 31330 but an other result with postal code "59660" is returned
The "good" query (with "postalcode" parameter) don't work http://nominatim.openstreetmap.org/search?format=json&postalcode=31330&city=Merville&country=fr
Thank you SomeoneElse for the link to the bug list ;)
fred727: it seems like you are right.
@scai : The wiki is buggy now... Why don't you fix it to poastALcode ?
@fred727 I already did several days ago.