Module osm.io.pbf.way
Streaming decode of regular OSMPBF Way messages.
A Way remains an OSM topological object at this layer: it exposes its signed
OSM ID, ordered tags, optional Info metadata, and the ordered absolute node
IDs reconstructed from the delta-coded refs column. The semantic
nodes range combines those references with optional LocationsOnWays
coordinates without exposing the parallel-column representation to ordinary
consumers. The Way is deliberately not interpreted as a line or
polygon; geometry construction belongs to a higher resolver/geometry layer.
Every Way in the PrimitiveGroup is fully preflighted before the first sink call. Repeated refs accept packed and unpacked protobuf encodings, concatenate in wire order, and use checked signed-64-bit delta accumulation.
Date
2026-09-13
Functions
| Name | Description |
|---|---|
decodeWays(block, group, table, sink, summary, status)
|
Decode every regular Way in one validated PrimitiveGroup. |
Structs
| Name | Description |
|---|---|
NodeRefRange
|
Borrowed semantic range over one Way's ordered node references. |
WayDecodeSummary
|
Summary of one completed regular-Way decode operation. |
WayLocationRange
|
Borrowed range over optional LocationsOnWays coordinates.
|
WayRefRange
|
Borrowed input range over one validated Way's absolute node references. |
WayView
|
One validated regular Way with borrowed tags, refs, metadata, and provenance. |
Aliases
| Name | Type | Description |
|---|---|---|
WayLocationView
|
LocationView
|
Compatibility name for a semantic location aligned with one Way reference. |
WayNodeRange
|
NodeRefRange
|
v0.1 compatibility alias. Prefer NodeRefRange. |