Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anvaka/extract-osm-roads
A simple utility to fetch a city graph from OSM
https://github.com/anvaka/extract-osm-roads
Last synced: about 2 months ago
JSON representation
A simple utility to fetch a city graph from OSM
- Host: GitHub
- URL: https://github.com/anvaka/extract-osm-roads
- Owner: anvaka
- Created: 2020-01-06T04:42:52.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-14T18:27:46.000Z (11 months ago)
- Last Synced: 2024-05-02T01:00:40.958Z (5 months ago)
- Language: JavaScript
- Homepage: https://github.com/anvaka/ngraph.path.demo
- Size: 85 KB
- Stars: 21
- Watchers: 3
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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