Skip to content

issue #230: fix Vietnam subdivision mapping to match VN.json#240

Merged
bojanz merged 1 commit intocommerceguys:mainfrom
eugene-brit:issue-230-update_vietnam_subdivisions
Feb 13, 2026
Merged

issue #230: fix Vietnam subdivision mapping to match VN.json#240
bojanz merged 1 commit intocommerceguys:mainfrom
eugene-brit:issue-230-update_vietnam_subdivisions

Conversation

@eugene-brit
Copy link
Contributor

The VN.json file was updated with new subdivision IDs but the SubdivisionUpdater mapping was not updated accordingly, causing mismatches between codes and names.

For example:

  • Code '44' was incorrectly returning 'An Giang Province' instead of 'Quang Tri Province'
  • Code '91' is the correct code for 'An Giang Province'
  • Many other Vietnamese subdivisions had incorrect mappings

This commit updates the Vietnam mapping in SubdivisionUpdater to match the current VN.json file data.

The mapping was generated by reading VN.json and extracting the correct name->ID pairs, ensuring consistency between the JSON data and the legacy name mapping.

Tested with all major Vietnamese cities and provinces.

Fixes #230

@bojanz bojanz merged commit 6bea7f0 into commerceguys:main Feb 13, 2026
5 checks passed
@bojanz
Copy link
Contributor

bojanz commented Feb 13, 2026

Thanks!

@bojanz
Copy link
Contributor

bojanz commented Feb 13, 2026

Committed a followup: b4e4b6a

It allows people to update from the old two-letter codes to the ones shipped in 2.2.5

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