Skip to content

Tag usage script - #188

Open
Nakaner wants to merge 9 commits into
mainfrom
tag_usage_script
Open

Nakaner wants to merge 9 commits into
mainfrom
tag_usage_script

Conversation

@Nakaner

@Nakaner Nakaner commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

The script published by @woodpeck in #153 (comment) is useful for other decisions related to tagging. Therefore, I added command line options, more features and some documentation. I would like to add it to this repository in order to be discoverable by members who might need it one day.

@joto joto left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could add a word about global stats being available from taginfo.openstreetmap.org and why combinations of local stats as collected by this script are useful.

Comment thread README.md Outdated
Comment thread tag_usage_stats.py Outdated
#
# Example:
# - `python tag_usage_stats.py -t value -k shop -n 75`
# will return all values of shop=* which are in the list of N most frequently used values of shop=* in all requested regions.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

N -> 75

Comment thread tag_usage_stats.py Outdated
Comment thread tag_usage_stats.py Outdated
#
# Example:
# - `python tag_usage_stats.py -t value -k shop -n 75`
# will return all values of shop=* which are in the list of N most frequently used values of shop=* in all requested regions.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does "all requested regions" mean? How do I request them?

Comment thread tag_usage_stats.py Outdated
Comment thread tag_usage_stats.py
# Author: Frederik Ramm
# Extended by Michael Reichert
# originally published in https://github.com/shortbread-tiles/shortbread-docs/issues/153#issuecomment-5476984543
#

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to have a proper License mentioned or a public domain release.

Comment thread tag_usage_stats.py
Comment thread tag_usage_stats.py
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

Successfully merging this pull request may close these issues.

2 participants