Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Idea: Link an example of the tag #4564

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments
Closed

Idea: Link an example of the tag #4564

openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments

Comments

@openstreetmap-trac
Copy link

Reporter: Harry Wood
[Submitted to the original trac issue database at 1.56am, Wednesday, 12th September 2012]

I may be missing something but I don't think there is a convenient tool anywhere for finding just one example of a particular tag.

My idea is that taginfo could include a link, perhaps alongside XAPI and JOSM, just called "Example", which jumps you to a random occurrence of the tag (osm.org browse page). By random I mean it could be just the last/first occurrence it encountered while processing the DB.

For some tags there is only one in the planet anyway, but also for cases where the XAPI and JOSM links refuse to work because there's too many of them, it would be handy to just jump to one example. Often that's all I need for one reason or another.

@openstreetmap-trac
Copy link
Author

Author: jochen[at]topf.org
[Added to the original trac issue at 7.26pm, Wednesday, 12th September 2012]

I am a bit concerned that people might think such an "example" is somehow special, picked to show proper use of a tag or so.

If the XAPI had a "limit" parameter to limit the number of results, we could allow using the XAPI with all tags. Would that solve your problem?

@openstreetmap-trac
Copy link
Author

Author: Harry Wood
[Added to the original trac issue at 6.22pm, Monday, 21st January 2013]

Ah hmm. I see what you mean about "Example". Can't think of a different word though.

Perhaps it could be an example picked to show proper use, by scraping from the wiki. So where an example is given on the wiki docs for a tag, it links that. Otherwise just random. But that's all getting a bit complicated.

A limit parameter on XAPI would be a neat addition I would have thought, although I was trying to think of a way to cut XAPI out of the picture. taginfo links direct to the element. It could certainly do this for tags where this is only one occurrence.

@openstreetmap-trac
Copy link
Author

Author: jochen[at]topf.org
[Added to the original trac issue at 10.12pm, Monday, 21st January 2013]

If somebody puts examples in the wiki in some parsable format, I could pull them in. Until that happens we are out of luck.

XAPI doesn't have a limit parameter, but the Overpass API has. So maybe that could be an option. I have also been thinking about how I could maybe add a bbox parameter to the XAPI request, but I am not sure how this could be done.

I have thought about keeping at least a single "example" ID of each key/tag. But in the end decided that taginfo should do one thing and do it well and not try to be everything to everybody. It is much better to leverage XAPI or whatever other service to add this kind of functionality.

I am closing this ticket now. This kind of discussion doesn't belong here, but on the taginfo-dev or dev mailing list.

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

No branches or pull requests

1 participant