komoot / photon

an open source geocoder for openstreetmap data
Apache License 2.0
1.95k stars 286 forks source link

Filtering by multiple filters does not always work #324

Open autumnus opened 6 years ago

autumnus commented 6 years ago

The search API says:

Note: not all tags on link in the title are supported. Please see nominatim source for an accurate list. If one or many query parameters named osm_tag are present, photon will attempt to filter results by those tags. In general, here is the expected format (syntax) for the value of osm_tag request parameters.

In general that works: http://photon.komoot.de/api/?q=kyoto&lang=de&osm_tag=place:city&limit=100 http://photon.komoot.de/api/?q=kyoto&lang=de&osm_tag=place:town&limit=100 http://photon.komoot.de/api/?q=kyoto&lang=de&osm_tag=place:village&limit=100

But combining does not always work: http://photon.komoot.de/api/?q=kyoto&lang=de&osm_tag=place:city&osm_tag=place:town&limit=100 (works) http://photon.komoot.de/api/?q=kyoto&lang=de&osm_tag=place:city&osm_tag=place:village&limit=100 (does NOT work)

(That way I tried to work around my issue #322)

Best regards, Autumnus

hbruch commented 6 years ago

Could you please describe why you think that the last query does not work? It returns results with place:city and place:village. What behavior do you expect?