4 releases (breaking)
|0.4.0||Mar 31, 2022|
|0.3.0||Apr 26, 2021|
|0.2.0||Oct 20, 2016|
|0.1.0||Oct 19, 2016|
#71 in Geospatial
68 downloads per month
Used in roads-from-nd
This project is a rewrite in rust from https://github.com/Tristramg/osm4routing
It converts an OpenStreetMap file (in the
.pbf format) into a CSV file.
Get a rust distribution with
cargo install osm4routing
You can now use
osm4routing <some_osmfile.pbf> to generate the
edges.csv that represent the road network.
If you prefer running the application from the sources, and not installing it, you run
cargo run --release -- <path_to_your_osmfile.pbf>
The identifiers for nodes and edges are from OpenStreetMap. That means that edges id can be duplicated.
Importing in a database
If you prefer having the files in database, you can run the very basic
It supposes that a database
osm4routing exists (otherwise modify it to your needs).