Skip to main content

Module pbf

Module pbf 

Source
Expand description

Read OpenStreetMap PBF files into the same intermediate shape produced by the Overpass XML parser. This lets the rest of the pipeline (graph building, POI extraction) work unchanged whether the data came from live Overpass or a local PBF file.

Functionsยง

read_pbf
Read a PBF file and produce an XmlData (the canonical intermediate shape our graph builder consumes) plus the set of node IDs that are POIs.
read_pbf_multi
Read a PBF file once and produce one XmlData per requested network type, plus the set of node IDs that are POIs (POIs are network-type-independent).