pelias / wof-admin-lookup

Who's on First Admin Lookup for the Pelias Geocoder
https://pelias.io
MIT License
9 stars 24 forks source link

postal-cities: update postal cities mapping to OSM vintage 2022 #308

Closed missinglink closed 2 years ago

missinglink commented 2 years ago

as per https://github.com/pelias/wof-admin-lookup/pull/279 this PR updates the postal-cities mapping files.

this data is more current, it's based on our:

which is in turn based on:

missinglink commented 2 years ago

I think this looks good, I reviewed the NZL file and it's mostly as expected, some minor counts changing here and there.

More importantly this change brings with it a new vintage of WOF, so the deprecated WOF IDs are corrected and some of the names which have been fixed since the last build.

Screenshot 2022-01-25 at 12 49 16
missinglink commented 2 years ago

There's still a fair bit of garbage in the files showing up usually near the top, for instance in the USA file there are a bunch of CAN postcodes which must heave been near/on the boundary border.

It's probably not a big deal since they will likely never be used but we might consider running a cleanup script in the future which removes those anomalies and potentially prunes the files a bit, for instance where there are 3 different potential matches for a postcode and one is clearly just a one-off mapping error.