#image #node #point #single #generate #openstreetmap #roads

app roads-from-nd

Generate an image of all roads from a single point

2 releases

Uses old Rust 2015

0.1.1 Dec 19, 2016
0.1.0 Dec 7, 2016

#61 in #openstreetmap

Custom license

9KB
189 lines

All roads from Notre-Dame

This projects contains the throw-away code used for the following blogpost: http://blog.tristramg.eu/roads-from-notre-dame.html

Examples of generated images can be found at: https://www.flickr.com/photos/tristramg/albums/72157672219472853/

Install Cargo http://doc.crates.io/.

To run cargo run --release -- --help.

  • You need an OpenStreetMap dump in the PBF format
  • Choose a starting node from OpenStreetMap. The node must be on the street network

The program will require about the same amout of memory as the size of the PBF file.

The running time varies a lot depending on the data source.

On my laptop ( Intel(R) Core(TM) i7-6560U CPU @ 2.20GHz), I need about 20 minutes to one hour to process 1Gb of OpenStreetMap data.

Dependencies

~8.5MB
~157K SLoC