This repository contains the code that regularly compares place names in OpenStreetMap with the New Zealand Geographic Board (Ngā Pou Taunaha o Aotearoa) Gazetteer.
How this works:
- The list of place names is downloaded from the NZGB
- An extract of the OpenStreetMap planet is downloaded (containing only Oceania & Antarctica)
- The OpenStreetMap planet is compared with the gazetteer, and any discrepancies are identified and categorized
- The result of the conflation process is converted into a format that allows OpenStreetMap mappers to review each place using the same tools as the LINZ-to-OSM address import.
If you want to contribute to the code, the following needs to be done manually:
- Clone this repository
- Download nodejs v18 or later
- Install
yarn
(runnpm i -g yarn
) - Run
yarn
- Run
yarn 1
to download the data (10mins) - Manually download the planet (West side as
tmp/osm-west.csv
and East side astmp/osm-east.csv
) - Manually download NZGB Lines as
tmp/nzgb-lines.csv
- Manually download NZGB Areas as
tmp/nzgb-areas.csv
- Run
yarn 2
to preprocess the data (3mins) - Run
yarn 3
to conflate the data (2mins) - Run
yarn 4
to generate the HTML report (1sec) - Use the generated
osmPatch
files to update the place names in OSM