This directory contains the ETL process that builds ReverseGeocoder datasets from GeoNames and GeoLite2 source files.
For the detailed step-by-step flow and transformation notes, see
PIPELINE.md.
Required tools:
bashcurlunzipcutsedsqlite3gawkpython3
- Copy
.env.distto.env. - Set
GEOLITE2_ACCOUNT_IDandGEOLITE2_LICENSE_KEYin.env. - Review
./generate. - Run
./generate. - Import generated CSV files with:
sqlite3 data.sqlite < import-sqlite.sql, or- your own DB pipeline using
import-postgres.sqlas reference.
Expected outputs include:
admin.csvplace.csvip.csvipv6.csv
Run ./cleanup to remove downloaded and intermediate files, then run
./generate again.
- root onboarding:
../README.md - pipeline internals:
PIPELINE.md