Home

Awesome

Hiking trail matcher

This tool was build to quickly enrich the hiking trails in Wikidata.

It gets a list of hiking trails from Wikidata that are missing an OSM relation ID and looks them up in the waymarked trails database.

Then it shows the result to the user and ask them pick the matching one if any.

Screenshot

bild

Operation

First the tool checks via OSM Wikidata Link if there is a single relation in OSM already linking to the item. If yes the tool presents the match for approval to the user.

If no match is found via OSM Wikidata Link the tool proceeds to lookup the label of the route in the Waymarked Trails database. If the user cannot decide whether they match, they are provided with links to make further investigatation easier. If the user choose "no match" then a missing-in OSM statement with the current date is uploaded to Wikidata. If a no value statement already exists a point in time-qualifier will be appended. If the user accepts a match it is uploaded to Wikidata at once.

Installation and setup

Make sure you have poetry installed with

$ pip install poetry

And then run

$ poetry install

Invocation

Windows

$ winpty python.exe app.py

Linux

$ python app.py

License

GPLv3+

What I learned writing this tool