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.
[
{
"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 "
]
}
]
Each specific county .JSON file contains OpenStreetMap information corresponding to the respective county.
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
This file includes center coordinates and multipolygon coordinates for each county.
To interact with a demonstration of the data visualized, visit this demo.
This project is licensed under the MIT License. For more details, please refer to the LICENSE file.