| Filename | Latest commit message | Latest commit date |
|---|---|---|
Every graded article now carries best-effort geo on article_scores: - parse_map_scores extracts Location/Lat/Lon/Confidence per block (clamp_coords-validated; Unknown -> no geo; never invent a place) - place-name-only blocks resolve via a vendored offline GeoNames gazetteer (cities15000 + admin1 + country->capital), confidence approx - nullable location_name/lat/lon/location_confidence columns (alembic 014, single head; idempotent ensure_tables mirror) + partial bbox index - GET /api/news/blips: frozen contract, dedup by article id (latest geo wins), finite coords only, created_at DESC, bbox/since/limit, default 1000 max 5000, public read like /api/news/map - critical/high map pins, ticker, grading thresholds, dedupe unchanged Tests: 50 new summarizer geo tests (161 total), 18 new blips API contract tests; alembic upgrade heads proven on fresh DBs both start orders; forced batch on test DB yielded 10 non-critical blips with geo. Card: t_bc15eb53 |
||
| .. | ||
| admin1.tsv | ||
| cities15000.tsv | ||
| countries.tsv | ||
| README.md | ||
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— trimmedcities15000.txtdump (all cities with population > 15000, ~34k rows). Columns (tab-separated, no header):name asciiname latitude longitude population country_code admin1_codeSource: https://download.geonames.org/export/dump/cities15000.zipadmin1.tsv— trimmedadmin1CodesASCII.txt(~3.9k first-level divisions: states/regions). Columns:code name asciiname(code isCC.A1, e.g.US.TX). Used to disambiguate "Paris, Texas" from "Paris, France". Source: https://download.geonames.org/export/dump/admin1CodesASCII.txtcountries.tsv— trimmedcountryInfo.txt(252 rows). Columns:iso_code country_name capitalSource: 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.