Crate transit_model[−][src]
Expand description
The transit_model crate proposes a model to manage transit data.
It can import and export data from
GTFS and
NTFS.
Features
transit_model has 2 possible features: proj and xmllint.
proj
proj feature is used for geolocation conversion (see
Proj). proj feature is used, for example, to export NeTEx France format.
xmllint
Most likely, you don’t need this feature as it’s only used for additional
tests. It doesn’t add any functionality to transit_model. If you’re a
contributor to the project, you might be interested to run these tests. In
this case, take a look at the CONTRIBUTING.md for more information on
this feature.
mutable-model
This is an experimental feature that allows you to get some abilities to
mutate a Model. It might not be completely stable at the moment so use
with care (or not at all!).
Re-exports
pub use crate::model::Model;Modules
This exposes common information between GTFS and NTFS Mainly 2 common things are grouped here:
GTFS format management.
Definition of the navitia transit model.
Some utils to work with the NeTEx format, especially the frames.
NTFS format management.
The different objects contained in the navitia transit model.
Some utilities for input dataset to the library.
See function generates_transfers
Some utilities to set and/or calculate validity periods.
See function translate
Macros
Helper to create a map of properties. Take a list of tuples (key, value).
Structs
Constants
Precise git version of transit_model the version will be: v{last github tag}-{commit number}-{commit hash}{“-modified” if some changes have been done since last commit}
Current version of the NTFS format
The max distance in meters to compute the transfer
Waiting time at stop in second
The walking speed in meters per second
Traits
Trait for object that can be prefixed
Functions
get the binary version and the transit_model version