Skip to content

import -> whosonfirst: update WOF spec - #150

Merged
missinglink merged 1 commit into
masterfrom
update-wof-spec
Aug 24, 2026
Merged

missinglink merged 1 commit into
masterfrom
update-wof-spec

Conversation

@missinglink

Copy link
Copy Markdown
Member

this PR updates the WOF placetype spec using the inbuilt whosonfirst_update_spec.sh script.

this had the effect of removing constituency and adding custom, nation and postalregion.

as a result the existing postalregion region test was slightly rewritten and a new testcase was added to explicitly cover the case of an unknown placetype.

Screenshot 2026-08-24 at 16 50 15

@missinglink

Copy link
Copy Markdown
Member Author

Not immediately obvious from the diff is that the postalregion placetype is now at wof:0 instead of wof:3 since the schema knows the other placetypes are parents.

@orangejulius

Copy link
Copy Markdown
Member

Woah. what's custom? I've never seen that before.

@missinglink

Copy link
Copy Markdown
Member Author

Woah. what's custom? I've never seen that before.

🤷‍♂️

@missinglink

Copy link
Copy Markdown
Member Author

Regarding the removal of constituency, I have an issue open since 2025.

@missinglink
missinglink merged commit 1172077 into master Aug 24, 2026
6 checks passed
@missinglink
missinglink deleted the update-wof-spec branch August 24, 2026 15:10
deliveree-pdc pushed a commit to deliveree-pdc/pelias-spatial that referenced this pull request Oct 28, 2026
…ias-spatial

* upstream/master: (49 commits)
  import(overture): support overture maps `division` datasets (pelias#151)
  feat(deps)!: update node engine to >=22.0.0
  feat(deps): update pelias-whosonfirst to ^9.0.0
  feat(deps): update pelias-logger to ^2.0.0
  feat(deps): update pelias-config to ^7.0.0
  feat(deps): pin better-sqlite3 to latest and approve install scripts
  fix(whosonfirst): update WOF spec (pelias#150)
  fix(import): Catch warning from unsupported hierarchy entries (pelias#149)
  fix(osm): Use `postalcode` layer instead of `postal_code` (pelias#147)
  Remove Node.js 20.x from CI
  fix(docs): Replace broken whosonfirst.org URLS with geocode.earth/data
  feat(wof): Use shared getDefaultName from wof package
  fix(wof): match record validity logic to placeholder
  feat(deps): Upgrade to better-sqlite3 v 12.10.0
  Add Node.js 26.x to CI
  feat(demo): fix flag icons, role prefixes (pelias#145)
  chore: add MIT license file
  CI: update GitHub Actions versions
  feat(Docker): Remove unused apt dependencies (pelias#144)
  feat(npm): configure CI for NPM OIDC Tokens (pelias#143)
  ...

# Conflicts:
#	Dockerfile
#	service/QueryService.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants