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

Modern-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
19pub mod admin;
20pub mod bbox;
21pub mod chains;
22pub mod compact;
23pub mod dem;
24pub mod extract;
25pub mod fingerprint;
26pub mod geojson;
27pub mod geom;
28pub mod graph_build;
29pub mod maxspeed;
30pub mod mem;
31pub mod names;
32pub mod nodeloc;
33pub mod osm;
34pub mod overlay;
35pub mod par;
36pub mod pbf;
37pub mod pbf_extra;
38pub mod poi_admin;
39pub mod poi_attrs;
40pub mod poi_build;
41pub mod poi_reviews;
42pub mod poi_side;
43pub(crate) mod progress;
44pub mod proto;
45pub mod region;
46pub mod rings;
47pub mod roads;
48pub mod safety;
49pub mod select;
50pub mod spatial;
51pub mod tags;
52pub mod tags_extra;
53pub mod timing;
54pub mod transit_lines;
55
56#[cfg(test)]
57mod testpbf;