Skip to contents

Bumped when the import produces a materially different database. Version 2 added the `x`/`y` coordinate columns that make radius queries fast, and corrected the datum used to read NAR's lon/lat columns. Version 3 fell back to the blockface centroid for addresses with no building point and added `geom_source` to tell the two apart. Version 4 added the `Streets` gazetteer that [normalize_address()] resolves against, and version 5 the `MunAlias` and `PostalMun` tables that let a municipality be reached by any of its names, or by postal code alone. Version 6 records which provinces the database actually holds, so a partial import can be recognized as one – a database without that key predates province subsetting and is therefore national, which is what [nar_coverage()] falls back to. Databases built by earlier versions still work, with the features that need the newer tables degrading rather than failing; see [nar_within_radius()] and [nar_has_streets()].

Usage

nar_schema_version()

Value

Integer schema version