Skip to main content

Crate osm_rail_graph

Crate osm_rail_graph 

Source
Expand description

Build deterministic, profile-specific railway routing graphs.

The crate reads the extraction GeoPackage described in the project documentation and writes a routing-oriented GeoPackage. Most users interact with it through the osm-rail-graph CLI. Library users can call build_graph with BuildOptions.

Structs§

BuildOptions
Options for one graph build.
BuildReport
Summary returned after a successful graph build.

Enums§

Error
An error produced while reading input or building a graph.
Profile
A vehicle and infrastructure compatibility profile.

Functions§

build_graph
Builds a routing graph and writes it to a new GeoPackage.

Type Aliases§

Result
The result type used by this crate.