leaflet-geosearch icon indicating copy to clipboard operation
leaflet-geosearch copied to clipboard

Search for "postalcode" instead of "query"

Open wlfnkls opened this issue 4 years ago • 0 comments

Hey,

is there a way to search for "postalcode" instead of "query", so the request doesnt look like https://nominatim.openstreetmap.org/search?accept-language=de&countrycodes=de&q=XXXXX&format=json

but like this https://nominatim.openstreetmap.org/search?accept-language=de&countrycodes=de&postalcode=XXXXX&format=json ?

The problem I have: when I enter the first digits of a postalcode, the results have noting in common with the actual city, but I got various places. My goal is to output all cities / towns / ... that start with those first digits.

Thank you!

wlfnkls avatar Feb 07 '21 18:02 wlfnkls