osint-dashboard/news/summerizer/data/README.md

28 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

# GeoNames reference data (offline gazetteer)
Vendored from GeoNames (https://www.geonames.org/), licensed CC-BY 4.0
(https://creativecommons.org/licenses/by/4.0/). Attribution: "GeoNames"
(https://www.geonames.org/) — the summarizer resolves place names to
proximate coordinates fully offline from these files; no geocoding API
is called at runtime.
## Files
- `cities15000.tsv` — trimmed `cities15000.txt` dump (all cities with
population > 15000, ~34k rows). Columns (tab-separated, no header):
`name asciiname latitude longitude population country_code admin1_code`
Source: https://download.geonames.org/export/dump/cities15000.zip
- `admin1.tsv` — trimmed `admin1CodesASCII.txt` (~3.9k first-level
divisions: states/regions). Columns: `code name asciiname`
(code is `CC.A1`, e.g. `US.TX`). Used to disambiguate "Paris, Texas"
from "Paris, France".
Source: https://download.geonames.org/export/dump/admin1CodesASCII.txt
- `countries.tsv` — trimmed `countryInfo.txt` (252 rows). Columns:
`iso_code country_name capital`
Source: https://download.geonames.org/export/dump/countryInfo.txt
Country-level lookups resolve to the capital's coordinates (the
countryInfo dump carries no centroid), confidence "approx".
Refresh: re-download the dumps, keep the same column layout. The loader
(`../gazetteer.py`) tolerates extra/missing trailing columns and skips
malformed rows.