Skip to content

A comprehensive repository hosting structured .JSON data files for all 47 Kenyan counties, including their codes, capitals, subcounties, and geoJSON information (polygon coordinates). It also provides OpenStreetMap data and multipolygon coordinates for each county.

License

Notifications You must be signed in to change notification settings

Mondieki/kenya-counties-subcounties

Repository files navigation

Kenyan Counties, Subcounties, and Polygon Boundaries

This repository hosts a comprehensive .JSON file containing data for all 47 counties in Kenya, including their codes, geoJSON information (polygon coordinates), respective subcounties, and capital cities.


Structure of counties.json

[
    {
        "name": "Bungoma",
        "capital": "Bungoma",
        "code": 39,
        "sub_counties": [
            "Bumula",
            "Kabuchai",
            .
            .
            .
            "Webuye east",
            "Webuye west"
        ]
    },
    
    .
    .
    .

    {
        "name": "Garissa",
        "capital": "Garissa",
        "code": 7,
        "sub_counties": [
            "Daadab",
            "Fafi",
            .
            .
            .
            "Ijara",
            "Lagdera balambala"
        ]
    },

    .
    .
    .

    {
        "name": "Nairobi",
        "capital": "Nairobi City",
        "code": 47,
        "sub_counties": [
            "Dagoretti North Sub County",
            "Dagoretti South Sub County ",
            .
            .
            .
            "Lang'ata Sub County ",
            .
            .
            .
            "Starehe Sub County ",
            "Westlands Sub County "
        ]
    }
]

Specific County Data: counties/{county}.json

Each specific county .JSON file contains OpenStreetMap information corresponding to the respective county.


GeoJSON Data: geojson/{county}.json

Polygon representations are given by coordinates of their vertices, provided as pairs of latitude and longitude using the WGS 84 coordinate system.

To render GeoJSON on web apps, read this


Coordinate Data: coordinates/{county}.json

This file includes center coordinates and multipolygon coordinates for each county.


Demonstration

To interact with a demonstration of the data visualized, visit this demo.

License

This project is licensed under the MIT License. For more details, please refer to the LICENSE file.

About

A comprehensive repository hosting structured .JSON data files for all 47 Kenyan counties, including their codes, capitals, subcounties, and geoJSON information (polygon coordinates). It also provides OpenStreetMap data and multipolygon coordinates for each county.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published