Struct NodeView

One concrete semantic node view delivered synchronously by PbfReader.

struct NodeView;

The view is deliberately non-copyable. For regular and dense encoded nodes it borrows the codec view only for the duration of the callback; this keeps construction constant-size and prevents a copied NodeView from outliving the stack object it references. Semantic subviews may be requested normally: location and metadata are lightweight values, while tags returns an independent borrowed range copy.

NodeView.init is a structurally valid scalar node with id and exact coordinates equal to zero, empty metadata, and no tags.

Properties

NameTypeDescription
id[get] longSigned OSM node identifier.
location[get] LocationViewSemantic location with exact integer backing and lazy degree conversion.
metadata[get] MetadataViewFormat-independent OSM metadata.
tags[get] NodeTagRangeReturn an independent borrowed range over this node's semantic tags.
type[get] ElementTypeSemantic OSM element kind.