pub fn fetch_map_data(
bbox: (f64, f64, f64, f64),
options: &SourceOptions,
progress_cb: &mut dyn FnMut(f32, &str),
) -> Result<SourceFetchResult>Expand description
Fetch OSM/Overpass data, optionally fetch Overture data, and apply source policy.
bbox is (south, west, north, east) in decimal degrees. progress receives
monotonically increasing values in the range 0.0..=1.0 for the source fetch
phase. The function uses blocking I/O and should be called from an appropriate
worker thread in async/UI applications.
Overture fetches are gated by options.overture.enabled. If Overture is
disabled, no Overture CLI check, cache read, or network request is performed
even when options.poi_source_mode is PoiSourceMode::OverturePreferred.