https://github.com/perliedman/osm-slope
Calculate slope (climb and descent) for highway ways in OpenStreetMap data.
https://github.com/perliedman/osm-slope
Last synced: 5 months ago
JSON representation
Calculate slope (climb and descent) for highway ways in OpenStreetMap data.
- Host: GitHub
- URL: https://github.com/perliedman/osm-slope
- Owner: perliedman
- License: isc
- Created: 2015-04-05T08:54:54.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-05-29T20:09:38.000Z (about 9 years ago)
- Last Synced: 2025-10-19T23:40:29.197Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 18
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
OSM Slope
=========
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.
## Usage
Currently designed to be used as a commandline tool.
```
node index.js [--cache-dir ] ; ;
```
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 kilometers
* `climbDistance`: distance climbing (kilometers)
* `descentDistance`: distance descending (kilometers)
* `climb`: total climb (meters)
* `descent`: total descent (meters)