Skip to main content

Module context

Module context 

Source
Expand description

Boundary-derived admin context.

Most records share their admin context with many neighbours, so contexts are interned as tuples of place record ids. A record body stores only the tuple id (ContextRef); this module stores the tuple table.

context/tuples  tuple_count u64, then per tuple 6 x u32 record ids
                (country, region, district, locality, neighbourhood, place),
                u32::MAX for absent

Structs§

AdminContextTuple
ContextReader
ContextTupleWriter
RecordContext
Admin context of one record plus assignment flags.

Constants§

CONTEXT_FLAG_AMBIGUOUS_ADMIN
CONTEXT_VERSION
SECTION_TUPLES