Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering by multiple filters does not always work #324

Open
autumnus opened this issue Apr 17, 2018 · 1 comment
Open

Filtering by multiple filters does not always work #324

autumnus opened this issue Apr 17, 2018 · 1 comment

Comments

@autumnus
Copy link

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
Copy link
Collaborator

hbruch commented Oct 12, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants