Skip to content

Releases

python-v0.1.0

Choose a tag to compare

@github-actions github-actions released this 06 Nov 06:07
1107725

Minor Changes

  • New Python package, published on PyPI as kenya-locations. It has the same lookups, name matching
    and typo-tolerant search as the other libraries, with no dependencies:
    kl.get_wards_in_constituency("Westlands"), kl.search("Nairob").

    Optional extras add framework support. pip install "kenya-locations[django]" adds model fields
    that store codes, chained county, constituency and ward selects for forms and the admin, hierarchy
    validation, and JSON drill-down views. pip install "kenya-locations[fastapi]" adds a ready-made
    read-only router, path dependencies and Pydantic code types.

    Lookups return None when nothing matches, and the require_* functions raise
    LocationNotFoundError or AmbiguousLocationError with a message that lists the candidates.
    Arguments of the wrong type raise TypeError.
    (#79) by
    @achingachris

Contributors: @achingachris

packages/go/v0.1.0

Choose a tag to compare

@github-actions github-actions released this 06 Nov 06:40
aac5834

Minor Changes

  • New Go module, github.com/davidamunga/kenya-locations/packages/go. It has the same lookups, name
    matching and typo-tolerant search as the other libraries, with no dependencies:
    kl.GetWardsInConstituency("Westlands"), kl.Search("Nairob"). The data is embedded with
    go:embed and parsed on first use, every function is safe for concurrent use, and every value
    returned is a copy.

    Lookups return nil when nothing matches or the name is ambiguous. Releases are tagged
    packages/go/v{version}. (#82) by
    @geoffowuor

Contributors: @geoffowuor

v0.12.0

Choose a tag to compare

@github-actions github-actions released this 05 Nov 17:45
0d56e66

kenya-locations

Minor Changes

  • Rebuild the sub-counties from the Humanitarian Data Exchange and link every ward to one.

    • Data: sub-counties.json is now the 302 DHIS2 sub-counties from the HDX "Kenya Sub
      Counties" layer (American Red Cross, CC BY, 2019 to 2020), replacing 307 records that were
      mostly constituency names. Two layer entries with no wards (Tiaty, Kalama) are left out. They
      are third-party, not an official KNBS or IEBC list, and are close to constituencies.
    • Ward link: every ward in wards.json now has a sub_county_code, from the HDX
      "Administrative Wards in Kenya 1450" layer. 1,346 wards match by exact name; 104 are matched by
      similar name or inferred from their constituency, and are listed in
      sources/hdx-kenya-wards/matches.json.
    • Codes changed: sub-county codes are now five digits, the county code plus two digits
      (04701), assigned by this project. data/history.json maps each old code to its replacement
      (240) or marks it removed (67).
    • JS and PHP: getWardsInSubCounty and getSubCountyOfWard now use the real link instead of
      matching sub-county and constituency names. Ward gains sub_county_code (JS) and
      subCountyCode (PHP). getSubCountyByCode zero-pads to five digits.
      (#76)

WordPress plugin

Download kenya-locations-wordpress-*.zip from the assets below.

  1. WordPress → Plugins → Add New → Upload Plugin
  2. Install and activate Kenya Locations
  3. Requires PHP 8.2+. Installation details are in readme.txt inside the zip.

v0.11.2

Choose a tag to compare

@github-actions github-actions released this 05 Nov 17:37
6c51b6b

kenya-locations

Patch Changes

  • Fix searchByType in Kotlin, Swift and .NET returning fewer results than asked for, or none. It
    searched every type, kept the top limit × 6 and then filtered by type, so for a common word like
    "West" other types filled the slots and no wards survived. The type is now applied before the
    limit, as in JS, PHP and Dart. (#74)

WordPress plugin

Download kenya-locations-wordpress-*.zip from the assets below.

  1. WordPress → Plugins → Add New → Upload Plugin
  2. Install and activate Kenya Locations
  3. Requires PHP 8.2+. Installation details are in readme.txt inside the zip.

v0.11.1

Choose a tag to compare

@github-actions github-actions released this 05 Nov 15:13
f58024d

kenya-locations

Patch Changes

  • Data update:

    • Areas (1,827 → 1,828)
      • Added area Kwa Jose (Juja, Kiambu)
        (#68)
  • Data update:

    • Areas (1,827 → 1,828)
      • Added area Highpoint (Juja, Kiambu)
        (#69)

WordPress plugin

Download kenya-locations-wordpress-*.zip from the assets below.

  1. WordPress → Plugins → Add New → Upload Plugin
  2. Install and activate Kenya Locations
  3. Requires PHP 8.2+. Installation details are in readme.txt inside the zip.

react-v0.10.4

Choose a tag to compare

@github-actions github-actions released this 05 Nov 17:39
0d56e66

Patch Changes

  • Uses kenya-locations 0.12.0.

react-v0.10.3

Choose a tag to compare

@github-actions github-actions released this 05 Nov 17:36
6c51b6b

Patch Changes

  • Uses kenya-locations 0.11.2.

react-v0.10.2

Choose a tag to compare

@github-actions github-actions released this 05 Nov 15:12
f58024d

Patch Changes

  • Update the useAreas doc comment and README to the current area count (1,829).
    (#71)

  • Uses kenya-locations 0.11.1.

php-v0.4.0

Choose a tag to compare

@github-actions github-actions released this 05 Nov 17:39
0d56e66

Minor Changes

  • Rebuild the sub-counties from the Humanitarian Data Exchange and link every ward to one.

    • Data: sub-counties.json is now the 302 DHIS2 sub-counties from the HDX "Kenya Sub
      Counties" layer (American Red Cross, CC BY, 2019 to 2020), replacing 307 records that were
      mostly constituency names. Two layer entries with no wards (Tiaty, Kalama) are left out. They
      are third-party, not an official KNBS or IEBC list, and are close to constituencies.
    • Ward link: every ward in wards.json now has a sub_county_code, from the HDX
      "Administrative Wards in Kenya 1450" layer. 1,346 wards match by exact name; 104 are matched by
      similar name or inferred from their constituency, and are listed in
      sources/hdx-kenya-wards/matches.json.
    • Codes changed: sub-county codes are now five digits, the county code plus two digits
      (04701), assigned by this project. data/history.json maps each old code to its replacement
      (240) or marks it removed (67).
    • JS and PHP: getWardsInSubCounty and getSubCountyOfWard now use the real link instead of
      matching sub-county and constituency names. Ward gains sub_county_code (JS) and
      subCountyCode (PHP). getSubCountyByCode zero-pads to five digits.
      (#76)

php-v0.3.1

Choose a tag to compare

@github-actions github-actions released this 05 Nov 15:12
f58024d

Patch Changes

  • Data update:

    • Areas (1,827 → 1,828)
      • Added area Kwa Jose (Juja, Kiambu)
        (#68)
  • Data update:

    • Areas (1,827 → 1,828)
      • Added area Highpoint (Juja, Kiambu)
        (#69)