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

Presets depend on tag order, users unable to see real presets #2793

Closed
d1g opened this issue Oct 1, 2015 · 5 comments
Closed

Presets depend on tag order, users unable to see real presets #2793

d1g opened this issue Oct 1, 2015 · 5 comments
Labels
preset An issue with an OpenStreetMap preset or tag

Comments

@d1g
Copy link

d1g commented Oct 1, 2015

Currently iD depends on tag order. I.e. for object tagged as

building=retail 
shop=mall

iD will display preset for building=retail

shop=mall
building=retail 

iD will display preset for shop=mall

Same with any other tag combination: building=* + real POI tag (shop=pet + building=yes)

Should we fix iD or should we sort tags in database?

@bhousel
Copy link
Member

bhousel commented Oct 1, 2015

Should we fix iD or should we sort tags in database?

We should probably bump down the priority on building presets so that other tags match first.

@d1g
Copy link
Author

d1g commented Oct 2, 2015

@bhousel that's neat. But how exactly "priority" works:

  1. It may rank/sort presets when user searches _by term/preset name_ (lets call it "search_rank")
  2. it may pick different preset when _user selects some object(s)_ (lets call it "pick_rank")

In this issue we talk about case 2, scenario 1 should be ranked by another tunable variable IMO. Otherwise you will "bump down" priority of "buildings" but they are still important in the regions without buildings.

If I were developing iD, I would consider search_rank as "country-specific" in configs, so users would get more useful suggestions in default presets. "country-specific" tags/presets was a long awaited feature in Russian community. Some tags/presets will never useful in some territory. Other country-specific tags will also benefit from search_rank feature, even it may be hard to implement/maintain correctly.

@d1g
Copy link
Author

d1g commented Oct 2, 2015

But actually country-specific settings/ranks may be activated per each instantiation of editor. I.e. openstreetmap.org front-end should spawn iD with configcountryA, configcountryB since this functionality was implemented already.

JOSM able to load config via any loadable URL / command like parameter. URL parameter will make sense for iD.

But case 2/ "pick_rank" is still relevant.

@pnorman
Copy link
Contributor

pnorman commented Oct 2, 2015

Should we fix iD or should we sort tags in database?

Tags have no order.

@d1g
Copy link
Author

d1g commented Oct 2, 2015

@pnorman good note, yes this statement was imprecise. I meant that tag order is important after we fetch data from db. I shouldn't mention db here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preset An issue with an OpenStreetMap preset or tag
Projects
None yet
Development

No branches or pull requests

3 participants