Skip to content

fix: refresh NLD postal geocoding and normalize full codes - #108

Closed
jkrenge wants to merge 1 commit into
masterfrom
codex/nld-postal-geocoding
Closed

jkrenge wants to merge 1 commit into
masterfrom
codex/nld-postal-geocoding

Conversation

@jkrenge

@jkrenge jkrenge commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Superseded by consolidated postal geocoding PR #124. This PR's head commit is retained in the combined branch. Combined CI passes on Node.js 24/26 and static checks.


Summary

Return-location distance analysis needs consistent NLD postal lookup. Refresh the GeoNames prefix points and accept compact full postcodes.

NLD 1012AB / 1012 AB / 1012 ab → 1012 → [longitude, latitude]

GeoNames NL.zip, retrieved 2026-11-04, is CC BY 4.0. Convert 4,334 source rows into 4,086 unique prefix records using the mean of distinct coordinate pairs. Record attribution, snapshot hashes, generation method, coverage limits, and PDOK sample checks in docs/geocode-NLD.md. Coordinates remain strings. This provides approximate four-digit prefix locations, without an accuracy bound or complete national coverage claim.

Evidence

  • Before: compact 1012AB misses; repeated prefixes select the first locality.
  • After: offline tests cover compact/spaced/lowercase inputs, urban/rural/island/border samples, malformed/unknown inputs, unique prefixes, finite ranges, and actual lookup of all 4,086 records.
  • npm test: 99 passed.
  • npm run lint, npm run format:check, npm run validate:data: passed. Data validation has two existing AUT/BEL warnings.
  • Generator rerun reproduced the dataset. No dependencies added.

Merge Danger

Door: two-way

Blast Radius: NLD

NLD coordinates change with the source refresh and representative-point method. Malformed NLD inputs now miss. Two-letter suffixes select the four-digit prefix; these points cannot locate a building or assess fraud. Caribbean Netherlands coverage is not established. Other countries retain their normalization and allowlist entries. The minimal lib/geocode.js edit can overlap with concurrent country PRs. No merge or deployment requested.

@jkrenge
jkrenge requested a review from a team as a code owner November 4, 2026 22:02
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T22:03:54.455448Z 253576c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jkrenge jkrenge closed this Nov 4, 2026
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.

1 participant