Skip to main content

install_geonames_sqlite

Function install_geonames_sqlite 

Source
pub fn install_geonames_sqlite(
    path: &Path,
    date: Option<&str>,
) -> Result<(usize, bool)>
Expand description

Download the GeoNames cities500 dump, admin1 codes, and country info; parse them; and write the records to the geonames, geonames_admin1, and geonames_countries tables in the SQLite database at path. Caches all three files for 30 days; other tables in the database are untouched. Returns (record_count, from_cache).