62 releases (31 breaking)

new 0.35.1 May 5, 2021
0.34.1 Mar 26, 2021
0.32.2 Nov 20, 2020
0.26.1 Jul 31, 2020
0.5.0 Jul 4, 2019

#48 in Filesystem

Download history 337/week @ 2021-01-15 89/week @ 2021-01-22 64/week @ 2021-01-29 213/week @ 2021-02-05 310/week @ 2021-02-12 122/week @ 2021-02-19 117/week @ 2021-02-26 32/week @ 2021-03-05 91/week @ 2021-03-12 197/week @ 2021-03-19 183/week @ 2021-03-26 181/week @ 2021-04-02 81/week @ 2021-04-09 185/week @ 2021-04-16 98/week @ 2021-04-23 130/week @ 2021-04-30

640 downloads per month
Used in transit_model_builder


18K SLoC


GitHub release (latest by date) Crates.io API documentation GitHub Workflow Status Codecov Code Coverage License: AGPL v3.0

transit_model is a Rust crate to manage, convert and enrich transit data.
This is done by implementing the NTFS model (used in navitia).

This repository regroups crates that offer enabler-libraries and binaries to convert and enrich transit data.

Additionally, transit_model is itself a library providing various functionalities. Please refer to the code, examples and documentation to discover them.

Please check documentation attached to each crate:

Setup Rust environment

transit_model is developed in Rust.

If you want to contribute or install binaries, you need to install a Rust environment: see rustup.rs

PROJ dependency

Based on PROJ, the proj crate allows the transformation of localization coordinates.

Some transit_model's crates (see each documentation) use PROJ.
So it must be installed on the system to compile and use those crates.

PROJ for binaries

Using the proj crate requires some system-dependencies installation.
The version 7.2.1 of PROJ is needed (used and tested by maintainers).

To help the installation you can execute the following command (On Debian systems):

make install_proj

PROJ installation instructions may help, too.

Using PROJ and transit_model as a developer

proj crate is a binding to the C library.

PROJ is configured as a feature of the transit_model crate.
So to use it for coding, the proj feature must be activated (cargo build --features=proj).
Then specific code should be conditionally enabled with #[cfg(feature="proj")].

NTFS Level of Support

transit_model is supporting most of NTFS format.
From the standard, some of the functionalities are not fully supported:

  • No support for Line Groups (files line_groups.txt and line_group_links.txt).
  • The field trip_short_name_at_stop in stop_times.txt introduced in version v0.10.0 (see NTFS changelog in French) is not supported.


Please see CONTRIBUTING to know more about the code or how to test, contribute, report issues.


Licensed under GNU Affero General Public License v3.0


~173K SLoC