by Felix Bühler
This project was part of "Lab Course: Algorithms for OSM Data".
This project implements "Contraction Hierarchies". Which is one of the best known speed-up techniques for shortest path calculations. As data source OpenStreetMap-data is used.
This repository consists of two programms:
This will parse the *.osm.pbf file into a *.osm.pbf.fmi file, which is needed for the web-program
Cropped OSM-data can be downloaded from Geofabrik.de
bincode= exporting serializationnum_cpus= get number of threadsosmpbfreader= parsing the pbf filerayon= parallelizationserde= serialization
cargo build --release -p osm_ch_pre
cargo run --release -p osm_ch_pre ./germany-latest.osm.pbf
from different grahps the best performance was using two cores (taskset -c 0,1 cargo run ...). This may vary between grahps.
is the webserver which provides the web-interface. (it needs the *.osm.pbf.fmi-file from the pre-programm.)
actix-files= serving static filesactix-rt= running actixactix-web= webserverbincode= exporting serializationenv_logger= logging the webserverrayon= parallelizationserde= serializationserde_json= serialization json
cargo build --release -p osm_ch_web
cargo run --release -p osm_ch_web ./germany-latest.osm.pbf.
