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

Filter: Allow to filter by key/value search term #344

Closed
tordans opened this issue Feb 2, 2019 · 5 comments
Closed

Filter: Allow to filter by key/value search term #344

tordans opened this issue Feb 2, 2019 · 5 comments

Comments

@tordans
Copy link
Contributor

tordans commented Feb 2, 2019

This is a feature request.

UseCase

I would like to monitor a larger area like whole Berlin for everything that has to do with bike-infrastructure.

Right now, I can create a filter for all changes for Berlin. And subscribe to this via RSS.

But I cannot filter this based on the OSM tags that where used in the changesets.

Idea

Add one or two fields to the filter view:

Filter to changesets that use this keyword inside one of the changesets OSM keys:
[_____] (enter keywords separated by comma)

Filter to changesets that use this keyword inside one of the changesets OSM key-values:
[_____] (enter keywords separated by comma)

Example 1:

I filter for key-keyword cycle to find changesets that use keys like cycleway or bicycle. (OSM Wiki)

Example 2:

I filter for "key value"-keyword bicycle to find changesets that use keys like amenity=bicycle_parking, amenity=bicycle_rental or shop=bicycle. (OSM Wiki)

@pyrog
Copy link

pyrog commented Jul 25, 2020

I want to check bicycle, hiking… routes.

Sometime I want to check one specific route (see #469), but sometime I want to check i.e. all relations with type=route and/or route=bicycle.

@pyrog
Copy link

pyrog commented Jul 25, 2020

Add one or two fields to the filter view:

I suggest to add a field that accept and evaluate simples expressions i.e like Overpass Wizard Queries.
See Tag Searches, Boolean Operators and Meta-Data Filters.

  • Search by key : emergency=* (or simpler emergency ?)
  • Search by tag : highway=cycleway
  • Search by metadata : type:relation and id:4840541
  • Boolean search: highway=bus_stop or railway=platform

@tordans
Copy link
Contributor Author

tordans commented Jul 25, 2020

After learning more about osmcha at SOTM Heidelberg, my understanding is now, that those filters are a problem to build since the required data is missing. The UI only knows about the changeset at first and about actual changes/tags only after the user choose a result. It might be possible to extend the osmcha-changeset data or build a different filter+list UI based on overpass data.

@pyrog
Copy link

pyrog commented Jul 25, 2020

After learning more about osmcha at SOTM Heidelberg

Do you talk about Using OSMCha to understand bad edits?
Unfortunately this talk wasn't recorded.

The UI only knows about the changeset at first

Yes, the UI probably know nothing about changesets content.
It need also changes in OsmCha backend.

@willemarcel
Copy link
Collaborator

Already available in production to changesets created from May 17th.

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

3 participants