All Projects → anvaka → extract-osm-roads

anvaka / extract-osm-roads

Licence: other
A simple utility to fetch a city graph from OSM

Programming Languages

javascript
184084 projects - #8 most used programming language

OSM Scripts

Just a collection of scripts that I sometimes use to extract graphs from Open Street Maps.

Usage

Install npm modules (once):

npm install

To download JSON file with all roads in the area that matches your search query:

node 0.download-city-roads Bellevue > data/bellevue.json

To convert it to binary format of a graph:

node 1.save-roads-graph.js data/bellevue.json

The graph will be saved in a binary format that is described here:

https://github.com/anvaka/ngraph.path.demo#storing-a-graph

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].