Zverik / every_door

A dedicated app for collecting thousands of POI for OpenStreetMap
https://every-door.app
ISC License
417 stars 36 forks source link

Custom presets/tag selection #383

Closed siiky closed 2 years ago

siiky commented 2 years ago

It would be very useful to be able to make your own set of presets for certain tags and/or features, similar to the "Default Payment Cards" option. Though I'm not sure if ED is the right place, or some other project is (the iD presets?).


As an example other than the payments cards, trash containers/baskets and recycling containers in Portugal are all basically the same.

For trash containers/baskets, these two cover almost all possible features:

waste=trash;organic;dog_excrement
waste=trash;organic;dog_excrement;cigarettes (more common with baskets)

And for recycling containers:

recycling:plastic=yes
recycling:plastic_bags=yes
recycling:plastic_bottles=yes
recycling:plastic_packaging=yes
recycling:cans=yes
recycling:PET=yes
recycling:paper=yes
recycling:paper_packaging=yes
recycling:beverage_cartons=yes
recycling:cardboard=yes
recycling:cartons=yes
recycling:magazines=yes
recycling:newspaper=yes
recycling:glass=yes
recycling:glass_bottles=yes

Additionally, if there's also a place for batteries:

recycling:batteries=yes
recycling:car_batteries=no

After making a preset for, let's say, recycling, I could be walking around and easily, quickly, and correctly(!) add a bunch of recycling features.

Zverik commented 2 years ago

Thanks for the idea — it is planned, but not this year, because it's quite hard to implement. This is a duplicate of #119.

siiky commented 2 years ago

I read #119 before opening this issue and I think they're different (though I used the same "custom preset" expression... my fault).

The other issue (AFAICU) includes (1) a way to filter which features will be shown/downloaded from OSM, (2) a way to filter which features can be added/edited.

I don't want to change the editor or general editing process at all! What I described above is rather a way to create a special set of tags to be used when creating a new feature, which is much smaller in scope and should be easier to implement. For example, if I create a new "recyling bin", on top of adding amenity=recycling & recycling_type=container (as it happens now), ED would add also the set of common tags used in my area/country (chosen by me (the user)).

The alternative (the current state) is to add each and all of those tags (~15) manually. At least for me that's impossible -- my memory sucks, I can't possibly remember all of them.


Hoping you'd reconsider, but I understand if you still think it's too much for now.

tordans commented 2 years ago

Just to put the thought out there: It would be awesome, if we came to the point where there is a shared "custom preset" schema that editors use and stores data cross editor via the osm-org profile API. This would be a great help for GoMap as well. I wrote more about it here https://github.com/bryceco/GoMap/issues/599.

mnalis commented 2 years ago

There is https://wiki.openstreetmap.org/wiki/Customising_JOSM_Presets - which I use for few customs tags combinations in both JOSM and Vespucci (and maybe others? those are the two that I use them in).

They are quite powerful (combining descriptions, wiki links, dropdown lists, radio buttons, checkboxes and combinations of them) but I suspect thus also not trivial to implement.

But yes, I'd too love if I could plug my own https://example.com/custom_presets.xml in ED too...

osmuser63783 commented 3 months ago

I came here to suggest the same feature - I hope this gets implemented. I find myself typing the same combination of tags over and over again, or looking up the same tags over and over again on the OSM wiki. Custom presets would be great for power users (and much smaller in scope than #119)

osmuser63783 commented 3 months ago

A minimal version of this would be to allow pasting from the clipboard into the raw tag editor (like JOSM and Vespucci). Then I can keep my custom preset in a separate notes app, search for them there, and copy them over into Every Door.

The next step up would be allowing me to save or 'star' a tag combination I have just used, give it a name and find it when I search for a preset.