npm install kenya
Then import
import { counties } from "kenya";
Output
[
{
"_id": "30",
"code": "30",
"name": "BARINGO",
"center": {
"lat": 0.6717,
"lon": 35.945852
},
"constituencies": [
{
"code": "158",
"name": "BARINGO NORTH",
"center": {
"lat": 0.753312,
"lon": 35.794812
},
"polygon": "https://raw.githubusercontent.com/gaithoben/kenya-geo/master/constituency/constituencypolygons/158.json"
},
...
],
"polygon": "https://raw.githubusercontent.com/gaithoben/kenya-geo/master/county/countypolygons/30.json"
},
...
]
import { constituencies } from "kenya";
Output
[
{
"_id": "144",
"code": "144",
"name": "AINABKOI",
"center": {
"lat": 0.316909,
"lon": 35.454233
},
"wards": [
{
"code": "0721",
"name": "AINABKOI/OLARE",
"center": {
"lat": 0.20469,
"lon": 35.500608
},
"polygon": "https://raw.githubusercontent.com/gaithoben/kenya-geo/master/ward/wardpolygons/0721.json"
},
{
"code": "0719",
"name": "KAPSOYA",
"center": {
"lat": 0.520393,
"lon": 35.320549
},
"polygon": "https://raw.githubusercontent.com/gaithoben/kenya-geo/master/ward/wardpolygons/0719.json"
},
{
"code": "0720",
"name": "KAPTAGAT",
"center": {
"lat": 0.42814,
"lon": 35.422417
},
"polygon": "https://raw.githubusercontent.com/gaithoben/kenya-geo/master/ward/wardpolygons/0720.json"
}
],
"polygon": "https://raw.githubusercontent.com/gaithoben/kenya-geo/master/constituency/constituencypolygons/144.json"
},
{
"_id": "190",
"code": "190",
"name": "AINAMOI",
"center": {
"lat": -0.303028,
"lon": 35.276669
},
"wards": [
{
"code": "0945",
"name": "AINAMOI",
"center": {
"lat": -0.26719,
"lon": 35.282392
},
"polygon": "https://raw.githubusercontent.com/gaithoben/kenya-geo/master/ward/wardpolygons/0945.json"
},
...
],
"polygon": "https://raw.githubusercontent.com/gaithoben/kenya-geo/master/constituency/constituencypolygons/190.json"
},
...
]
import { ethnicpopulation2009 } from "kenya";
Output
[
{ "name": "TURKANA", "population": 988592 },
{
"name": "LUHYA",
"population": 5338666,
"subs": [
{ "name": "LUHYA (SO STATED)", "population": 578583 },
{ "name": "BAKHAYO", "population": 124555 },
{ "name": "BANYALA", "population": 273198 },
{ "name": "BANYORE", "population": 310894 },
{ "name": "BATSOTSO", "population": 121518 },
{ "name": "BUKUSU", "population": 1432810 },
{ "name": "IDAKHO", "population": 170720 },
{ "name": "ISUKHA", "population": 217327 },
{ "name": "KABRAS", "population": 252761 },
{ "name": "KISA", "population": 137268 },
{ "name": "MARACHI", "population": 155341 },
{ "name": "MARAGOLI", "population": 618340 },
{ "name": "MARAMA", "population": 152427 },
{ "name": "SAMIA", "population": 124952 },
{ "name": "TACHONI", "population": 118363 },
{ "name": "TIRIKI", "population": 209814 },
{ "name": "TURA", "population": 30388 },
{ "name": "WANGA", "population": 309407 }
]
},
...
]
import { worldcurrencies } from "kenya";
import { worldlanguages } from "kenya";