/python-osmium-examples

A set of examples showing practical usage of PyOsmium, a thin wrapper around the osmium library.

Primary LanguagePythonApache License 2.0Apache-2.0

Python Osmium Examples

This is a set (currently of size 1) of examples showing practical usage of PyOsmium, a thin wrapper around the osmium library.

If you have other useful scripts, please submit a pull request to include them. If you do, please also update setup.py accordingly. See the Click documentation for information.

How to install

git clone git@github.com:mvexel/python-osmium-examples.git
cd python-osmium-examples
python3 -m venv venv
source venv/bin/activate
pip install .

The Scripts

You can get basic syntax help by calling the script with --help.

count_highway_mappers

Counts edits to major highways by user. The result is written as a CSV file with one row per mapper and one column per highway value.

The highway tag values to include are hard-coded in the script.