Opened 8 years ago

Closed 8 years ago

#4564 closed enhancement (wontfix)

Idea: Link an example of the tag

Reported by: Harry Wood Owned by: jochen@…
Priority: minor Milestone:
Component: taginfo Version:
Keywords: Cc:


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 ( 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.

Change History (3)

comment:1 Changed 8 years ago by Jochen Topf

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?

comment:2 Changed 8 years ago by Harry Wood

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.

comment:3 Changed 8 years ago by Jochen Topf

Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.