Name: osm-slope
Owner: Makina Corpus
Description: Calculate slope (climb and descent) for highway ways in OpenStreetMap data.
Forked from: perliedman/osm-slope
Created: 2016-03-14 14:08:16.0
Updated: 2017-12-03 16:22:05.0
Pushed: 2016-03-14 14:43:51.0
Size: 7
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Calculate slope (climb and descent) for highway ways in OpenStreetMap data.
OSM Slope offers reasonable performance. Processing all of Sweden (825k highway ways) takes 150 seconds on my pretty old laptop.
Currently designed to be used as a commandline tool.
index.js [--cache-dir <DIR>] <IN>; <OUT>;
where INPUT
is an OpenStreetMap .osm.xml
or .osm.pbf
file. Output
is a JSON file.
The output is organized as a map with way ids as keys and an object with slope information in this format:
distance
: total way length in kilometersclimbDistance
: distance climbing (kilometers)descentDistance
: distance descending (kilometers)climb
: total climb (meters)descent
: total descent (meters)