Repository navigation
Tag usage script - #188
Open
Nakaner wants to merge 9 commits into
Open
Tag usage script#188Nakaner wants to merge 9 commits into
Nakaner wants to merge 9 commits into
Conversation
This is useful to find out which languages are most frequently tagged in various regions.
joto
requested changes
Sep 24, 2026
joto
left a comment
Contributor
There was a problem hiding this comment.
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.
| # | ||
| # 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. |
| # | ||
| # 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. |
Contributor
There was a problem hiding this comment.
What does "all requested regions" mean? How do I request them?
| # Author: Frederik Ramm | ||
| # Extended by Michael Reichert | ||
| # originally published in https://github.com/shortbread-tiles/shortbread-docs/issues/153#issuecomment-5476984543 | ||
| # |
Contributor
There was a problem hiding this comment.
Would be good to have a proper License mentioned or a public domain release.
joto
approved these changes
Sep 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.