Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / scripts / maps / osm_ingest / src / lib.rs
lib.rs57 lines · 1.5 KiBRaw
| 1 | //! Host-side OSM ingest for the Maps offline packs. |
| 2 | //! |
| 3 | //! Three tools share this library: |
| 4 | //! |
| 5 | //! * `road_graph` — the routing graph (`metadata.bin`, `nodes.bin`, `edges.bin`, |
| 6 | //! `lanes.bin`, `road_names.bin`), consumed by |
| 7 | //! `maps/src/main/rust/src/graph.rs`. |
| 8 | //! * `poi_extract` — the `ma_pois` layer's geojsonseq plus `poi_names.bin` and |
| 9 | //! `poi_index.bin`, consumed by `PoiIndex.kt`. |
| 10 | //! * `osm_extract` — one geojsonseq per baked vector layer, replacing the |
| 11 | //! `osmium tags-filter | osmium export | normalize_*.py` chain. See |
| 12 | //! [`extract`]. |
| 13 | //! |
| 14 | //! The first two used to be C++ built against libosmium, which meant they only |
| 15 | //! ran under WSL. Reading `.osm.pbf` directly — a hand-rolled protobuf decoder |
| 16 | //! plus a pure-Rust inflate — makes them native on every platform the app is |
| 17 | //! built on, and the third never had a Windows path at all. |
| 18 | |
| 19 | pub mod admin; |
| 20 | pub mod bbox; |
| 21 | pub mod chains; |
| 22 | pub mod compact; |
| 23 | pub mod dem; |
| 24 | pub mod extract; |
| 25 | pub mod fingerprint; |
| 26 | pub mod geojson; |
| 27 | pub mod geom; |
| 28 | pub mod graph_build; |
| 29 | pub mod maxspeed; |
| 30 | pub mod mem; |
| 31 | pub mod names; |
| 32 | pub mod nodeloc; |
| 33 | pub mod osm; |
| 34 | pub mod overlay; |
| 35 | pub mod par; |
| 36 | pub mod pbf; |
| 37 | pub mod pbf_extra; |
| 38 | pub mod poi_admin; |
| 39 | pub mod poi_attrs; |
| 40 | pub mod poi_build; |
| 41 | pub mod poi_reviews; |
| 42 | pub mod poi_side; |
| 43 | pub(crate) mod progress; |
| 44 | pub mod proto; |
| 45 | pub mod region; |
| 46 | pub mod rings; |
| 47 | pub mod roads; |
| 48 | pub mod safety; |
| 49 | pub mod select; |
| 50 | pub mod spatial; |
| 51 | pub mod tags; |
| 52 | pub mod tags_extra; |
| 53 | pub mod timing; |
| 54 | pub mod transit_lines; |
| 55 | |
| 56 | #[cfg(test)] |
| 57 | mod testpbf; |