Skip to content

Instantly share code, notes, and snippets.

@habi
Created June 4, 2026 07:04
Show Gist options
  • Select an option

  • Save habi/4f6e8319d00955b21a3b3bce76cb080a to your computer and use it in GitHub Desktop.

Select an option

Save habi/4f6e8319d00955b21a3b3bce76cb080a to your computer and use it in GitHub Desktop.
import who_added_this_tag
config = {
'key': 'payment:swiss_pass',
'value': None, # may be None - in such case it looks for all values of key
'area_identifier_key': None, # may be None, in such case search is worldwide, 'ISO3166-1' is a good identifier
'area_identifier_value': 'PL', # ignored if area_identifier_key is None
'list_all_edits': True,
'list_all_edits_made_by_this_users': [], # ignored with list_all_edits set to True
}
who_added_this_tag.statistics.process_case(config)
git clone https://codeberg.org/matkoniecz/who-added-this-tag
cd who-added-this-tag/
conda create -name who-added-this-tag
conda install pip
pip install thin_osm_api_wrapper lxml osm_bot_abstraction_layer
vi find.py
python find.py
using https://overpass-api.de/api/interpreter
single_query_run: downloading
[out:xml][timeout:25];
(
nwr['payment:swiss_pass'];
);
out skel qt;
Timeout in osm_bot_abstraction_layer.overpass_downloader.single_query_run was not specified! According to parsing it is 25
download is now started, with timeout 25 at 2026-06-04 09:03:43.423585
download completed with 200 http code at 2026-06-04 09:03:43.880071 after 0:00:00.456490
the first attempt
response length: 1831
node 12823812011
node 12823823434
node 13742807093
node 10832407042
node 10832407048
node 10832407049
node 13889383445
node 10589770985
node 6838820247
node 10589784625
node 5572159603
node 5599293501
node 6920906596
node 11987985027
node 12749881595
node 4437851884
node 5371134383
node 10238093102
node 9965942492
way 28359266
https://api.openstreetmap.org/api/0.6/node/12823812011/history.json
https://api.openstreetmap.org/api/0.6/node/12823823434/history.json
https://api.openstreetmap.org/api/0.6/node/13742807093/history.json
https://api.openstreetmap.org/api/0.6/node/10832407042/history.json
https://api.openstreetmap.org/api/0.6/node/10832407048/history.json
https://api.openstreetmap.org/api/0.6/node/10832407049/history.json
https://api.openstreetmap.org/api/0.6/node/13889383445/history.json
https://api.openstreetmap.org/api/0.6/node/10589770985/history.json
https://api.openstreetmap.org/api/0.6/node/6838820247/history.json
https://api.openstreetmap.org/api/0.6/node/10589784625/history.json
https://api.openstreetmap.org/api/0.6/node/5572159603/history.json
https://api.openstreetmap.org/api/0.6/node/5599293501/history.json
https://api.openstreetmap.org/api/0.6/node/6920906596/history.json
https://api.openstreetmap.org/api/0.6/node/11987985027/history.json
https://api.openstreetmap.org/api/0.6/node/12749881595/history.json
https://api.openstreetmap.org/api/0.6/node/4437851884/history.json
https://api.openstreetmap.org/api/0.6/node/5371134383/history.json
https://api.openstreetmap.org/api/0.6/node/10238093102/history.json
https://api.openstreetmap.org/api/0.6/node/9965942492/history.json
https://api.openstreetmap.org/api/0.6/way/28359266/history.json
Counter({'CreCrePL': 9, 'mueschel': 8, 'Piagno': 2, 'dafadllyn': 1})
https://www.openstreetmap.org/user/CreCrePL https://www.openstreetmap.org/changeset/181542578 https://www.openstreetmap.org/node/13742807093/history 9
https://www.openstreetmap.org/user/mueschel https://www.openstreetmap.org/changeset/183488860 https://www.openstreetmap.org/node/13889383445/history 8
https://www.openstreetmap.org/user/Piagno https://www.openstreetmap.org/changeset/166165356 https://www.openstreetmap.org/node/12823812011/history 2
https://www.openstreetmap.org/user/dafadllyn https://www.openstreetmap.org/changeset/182718469 https://www.openstreetmap.org/node/5572159603/history 1
20 objects listed with their authors
{| class="wikitable"
|+ What added {{tag|payment:swiss_pass}}?
|-
! User !! Example changeset !! History of object !! Count
|-
| CreCrePL || https://www.openstreetmap.org/changeset/181542578 || https://www.openstreetmap.org/node/13742807093/history || 9
|-
| mueschel || https://www.openstreetmap.org/changeset/183488860 || https://www.openstreetmap.org/node/13889383445/history || 8
|-
| Piagno || https://www.openstreetmap.org/changeset/166165356 || https://www.openstreetmap.org/node/12823812011/history || 2
|-
| dafadllyn || https://www.openstreetmap.org/changeset/182718469 || https://www.openstreetmap.org/node/5572159603/history || 1
|}
Generated with https://codeberg.org/matkoniecz/who-added-this-tag - counts first addition to objects were carrying this tag as of 2026-06-04.
20 objects exist in total
https://www.openstreetmap.org/changeset/166165356 editing https://www.openstreetmap.org/node/12823812011/history
https://www.openstreetmap.org/changeset/166165356 editing https://www.openstreetmap.org/node/12823823434/history
https://www.openstreetmap.org/changeset/181542578 editing https://www.openstreetmap.org/node/13742807093/history
https://www.openstreetmap.org/changeset/135240666 editing https://www.openstreetmap.org/node/10832407042/history
https://www.openstreetmap.org/changeset/135240666 editing https://www.openstreetmap.org/node/10832407048/history
https://www.openstreetmap.org/changeset/135240666 editing https://www.openstreetmap.org/node/10832407049/history
https://www.openstreetmap.org/changeset/183488860 editing https://www.openstreetmap.org/node/13889383445/history
https://www.openstreetmap.org/changeset/180888342 editing https://www.openstreetmap.org/node/10589770985/history
https://www.openstreetmap.org/changeset/180888342 editing https://www.openstreetmap.org/node/6838820247/history
https://www.openstreetmap.org/changeset/180888342 editing https://www.openstreetmap.org/node/10589784625/history
https://www.openstreetmap.org/changeset/182718469 editing https://www.openstreetmap.org/node/5572159603/history
https://www.openstreetmap.org/changeset/183488860 editing https://www.openstreetmap.org/node/5599293501/history
https://www.openstreetmap.org/changeset/183488860 editing https://www.openstreetmap.org/node/6920906596/history
https://www.openstreetmap.org/changeset/180888342 editing https://www.openstreetmap.org/node/11987985027/history
https://www.openstreetmap.org/changeset/170598895 editing https://www.openstreetmap.org/node/12749881595/history
https://www.openstreetmap.org/changeset/156688044 editing https://www.openstreetmap.org/node/4437851884/history
https://www.openstreetmap.org/changeset/167147274 editing https://www.openstreetmap.org/node/5371134383/history
https://www.openstreetmap.org/changeset/174603898 editing https://www.openstreetmap.org/node/10238093102/history
https://www.openstreetmap.org/changeset/128561265 editing https://www.openstreetmap.org/node/9965942492/history
https://www.openstreetmap.org/changeset/135240666 editing https://www.openstreetmap.org/way/28359266/history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment