This is a Python package to handle the high-level logic of computing travel time
matrices for multiple travel modes using r5py
.
This package is used, for instance, for calculating travel time matrices of the Helsinki metropolitan area (in a Docker container), but can be used by itself, as well.
pip install git+https://github.com/DigitalGeographyLab/travel-time-matrix-computer.git
Create a data
directory, within that a config file according to the template
provided in travel_time_matrix_computer.yml.example
, and pass it to python -m travel_time_matrix_computer
This package depends on r5py,
car_speed_annotator,
cycling_speed_annotator,
and
parking_times_calculator,
as well as all dependencies listed there (i.e., a Java JRE and
osmium
, which is
available as a package for most Linux distributions: e.g., osmium-tool
on
Ubuntu and Arch).
Output data aggregation and packing can be sped up by installing the optional
dependency 7za
(available as p7zip
on Ubuntu, Arch, and most likely most
Linux distributions)