Skip to content

fix: update Kazakhstan, Ethiopia, Norway and Equatorial Guinea data - #111

Merged
deanology merged 1 commit into
selfmadecode:mainfrom
geographybuff:update-kazakhstan-ethiopia-norway-equatorial-guinea
Oct 8, 2026
Merged

deanology merged 1 commit into
selfmadecode:mainfrom
geographybuff:update-kazakhstan-ethiopia-norway-equatorial-guinea

Conversation

@geographybuff

Copy link
Copy Markdown
Contributor

Updates four countries whose data is out of date. Each change is in the country file and its unit test (8 files).

Kazakhstan (Kazakhstan.cs, KazakhstanTest.cs)

  • The capital city entry was "Nur-Sultan" (KZ-NUR). The city was renamed back to Astana on 17 September 2022 (Al Jazeera, Wikipedia). KZ-NUR was never an ISO code.
  • Three regions created in June 2022 were missing: Abai, Jetisu, Ulytau (Regions of Kazakhstan).
  • ISO 3166-2:KZ replaced its letter codes with numeric ones on 2022-11-29 (e.g. KZ-AKM → KZ-11, KZ-ALA → KZ-75), so the list now uses the current codes: 17 regions + 3 cities, 20 entries (ISO 3166-2:KZ). Every Kazakhstan code changes, so anything matching on the old codes would need updating.
  • NativeName was the literal string "?????????", an encoding loss; it's now "Қазақстан". Kazakhstan was the only country affected.

Ethiopia (Ethiopia.cs, EthiopiaTest.cs)

  • Added South West Ethiopia Peoples' Region (SW), which ISO 3166-2:ET added on 2022-11-29 (ISO 3166-2:ET, Regions of Ethiopia). SNNPR (SN) stays, because ISO still lists it.

Norway (Norway.cs, NorwayTest.cs)

  • The 11 counties had codes NO-01…NO-11, which don't match ISO 3166-2:NO (for example Viken was NO-11, ISO's code for Rogaland). They now use the ISO codes, such as Agder NO-42, Oslo NO-03, Viken NO-30 (ISO 3166-2:NO). The county names are unchanged: Norway split Viken, Vestfold og Telemark and Troms og Finnmark in January 2024, but ISO 3166-2 hasn't adopted that yet.

Equatorial Guinea (EquatorialGuinea.cs, EquatorialGuineaTest.cs)

  • Capital "Malabo" → "Ciudad de la Paz" (Financial Afrik, Wikipedia). The change was made by presidential decree in January 2026, with a one-year transition for government institutions.

Tests: dotnet test passes (252 tests).

AI disclosure: prepared with Claude Code (Claude Opus 5.5), which found the outdated entries, checked them against the sources above, made the edits and ran the tests.

- Kazakhstan: current ISO 3166-2:KZ subdivisions (2022 update), with
  Astana instead of Nur-Sultan, the new Abai, Jetisu and Ulytau regions,
  and the numeric codes; restore the native name, which was "?????????".
- Ethiopia: add South West Ethiopia Peoples' Region (ET-SW).
- Norway: use the real ISO 3166-2:NO county codes.
- Equatorial Guinea: capital is Ciudad de la Paz.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@geographybuff
geographybuff marked this pull request as ready for review October 8, 2026 15:39
@selfmadecode

Copy link
Copy Markdown
Owner

I will take a look into this
@deanology @ReaganDev FYI

@deanology
deanology merged commit 0201d5e into selfmadecode:main Oct 8, 2026
2 checks passed
@selfmadecode

Copy link
Copy Markdown
Owner

We will deploy a new release by weekend @geographybuff
Thanks

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.

4 participants