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

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

lib.rs55 lines · 1.4 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 geojson;
26pub mod geom;
27pub mod graph_build;
28pub mod maxspeed;
29pub mod mem;
30pub mod names;
31pub mod nodeloc;
32pub mod osm;
33pub mod overlay;
34pub mod par;
35pub mod pbf;
36pub(crate) mod progress;
37pub mod pbf_extra;
38pub mod poi_attrs;
39pub mod timing;
40pub mod poi_build;
41pub mod poi_reviews;
42pub mod poi_side;
43pub mod proto;
44pub mod region;
45pub mod rings;
46pub mod roads;
47pub mod safety;
48pub mod select;
49pub mod spatial;
50pub mod tags;
51pub mod tags_extra;
52pub mod transit_lines;
53
54#[cfg(test)]
55mod testpbf;