Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
dependencies ▾

Modern-Apps.git / scripts / maps / gtfs_ingest / src / lib.rs

lib.rs26 lines · 996 BRaw
1//! Shared GTFS ingest internals for the Maps offline packs.
2//!
3//! Exists so the crate can carry more than one host binary over the same GTFS
4//! `gtfs_ingest` builds the on-device `.transit` index, `transit_stops`
5//! emits the basemap stop layer, `transit_shapes` emits the basemap's coloured
6//! rail lines, `resolve_feeds` turns the Transitous and
7//! transitland-atlas registries into a download plan whose feeds can carry MOTIS
8//! stop ids, and `transit_dump` renders a built pack as diffable text. Mirrors
9//! `osm_ingest`'s lib + `src/bin/*` shape.
10//!
11//! **Zero dependencies, deliberately.** That includes the JSON reader in [`json`]:
12//! pulling in serde for two registry formats would trade away the property that
13//! makes this crate build and run offline on any box.
14pub mod bundle;
15pub mod gtfs;
16pub mod gtfs_extra;
17pub mod index;
18pub mod json;
19pub mod manifest;
20pub mod par;
21pub mod rail;
22pub mod reader;
23pub mod reader_extra;
24pub mod registry;
25pub mod shapes;
26pub mod timing;