Skip to main content

GEONAMES_SCHEMA_VERSION

Constant GEONAMES_SCHEMA_VERSION 

Source
pub const GEONAMES_SCHEMA_VERSION: i64 = 2;
Expand description

Schema version stamp. Bump whenever the column layout changes so geonames_schema_is_current can detect a stale on-disk DB and trigger a rebuild. v2: added feature_code (PPLC / PPLA / PPLA2 / PPL / …). Lets us prefer real cities over GeoNames “PPL” entries that inherit a metro-wide population — e.g. Rasapudipalem (PPL, pop 1,728,128 in upstream data) shouldn’t outrank Visakhapatnam (PPLA2, pop 1,063,178).