makinacorpus/osm-slope

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

Homepage:

Size: 7

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

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.

 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:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.