Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-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. |
| 14 | pub mod bundle; |
| 15 | pub mod gtfs; |
| 16 | pub mod gtfs_extra; |
| 17 | pub mod index; |
| 18 | pub mod json; |
| 19 | pub mod manifest; |
| 20 | pub mod par; |
| 21 | pub mod rail; |
| 22 | pub mod reader; |
| 23 | pub mod reader_extra; |
| 24 | pub mod registry; |
| 25 | pub mod shapes; |
| 26 | pub mod timing; |