osm-search / Nominatim

Open Source search based on OpenStreetMap data
https://nominatim.org
GNU General Public License v3.0
2.99k stars 701 forks source link

No polygon data with postalcode #3361

Closed blankse closed 3 months ago

blankse commented 4 months ago

What did you search for?

https://nominatim.openstreetmap.org/search?format=jsonv2&polygon_geojson=1&postalcode=91550&countrycodes=de

What result did you get?

No geojson data

What result did you expect?

geojson data like in other postal code searches

Further details

The error was already fixed in April 2023. But now it's back again. Seems to affect many more or all postcodes now.

See: https://github.com/osm-search/Nominatim/issues/3025

lonvia commented 4 months ago

The Python frontend has a preference for the postcode centroids over the postcode areas. That is in principle a good thing because it reduces false positive results. We just need a fast way to find potential postcode areas in placex to complete the data.

blankse commented 4 months ago

@lonvia But the param has the name "polygon_geojson".

I think if it should prefer points over polygon you should add a new param "point_geojson".

lonvia commented 3 months ago

Fixed in #3362.

blankse commented 3 months ago

@lonvia Thank you!