OpenStreetMap INTelligence. Playing with OSM data.
Install dependencies with:
pip install -r requirements.txt
First store data into the local cache in order to avoid re-fetching it for every plot.
Use the --help
flag on any command to get detailed information and options on its usage.
Add changesets to the cache with the following command:
python3 main.py download changesets ${USERNAME}
python3 main.py plot --help
To plot a heatmap of changesets first load the changesets into the cache (see "Download data" -> "Changesets").
The following command will plot an interactive world map with the changesets and open it in your default browser:
python3 main.py plot heatmap ${USERNAME}
To plot a map of changes of the same day connected by lines first load the changesets into the cache (see "Download data" -> "Changesets").
The following command will plot an interactive world map with the changesets and open it in your default browser:
python3 main.py plot daytraces ${USERNAME}
To get rid of your locally cached data:
python3 main.py cache delete
requirements.txt
is generated with:
pipreqs . --force