murwanda is an alternative to rwanda, with this package you get access to place codes for all locations(provinces,districs,sectors,cells,villages) from Rwanda
npm install murwanda
or
yarn add murwanda
const { PlaceCodesByProvince, PlaceCodesByCode } = require("murwanda");
console.log(PlaceCodesByProvince("South"));
console.log(PlaceCodesByCode("102130307")) // 102130307 : village code
// [
// {
// province_code: '1',
// province_name: 'Kigali City',
// district_code: '102',
// district_name: 'Gasabo',
// sector_code: '010213',
// sector_name: 'Remera',
// cell_code: '1021303',
// cell_name: 'Rukiri I',
// village_code: '102130307',
// village_name: 'Urumuri'
// }
// ]
const { PlaceCodesByProvince, PlaceCodesByDistrict, PlaceCodesBySector, PlaceCodesByCell, PlaceCodesByVillage, PlaceCodesByCode } = require("murwanda");
All inputs are case-insensitive.
Returns array of all places(province, districts, sectors, cells, villages) and their respective codes from the given province.
Returns array of all places(province, district, sectors, cells, villages) and their respective codes from the given district.
Returns array of all places(province, district, sector, cells, villages) and their respective codes.
Returns array of all places(province, district, sector, cell, villages) and their respective codes.
Returns array of all places(province, district, sector, cell, village) and their respective codes.
Returns array of all places(province, district, sector, cell, village) and their respective codes.
- Please before making a PR, read first this Contributing Guideline
MIT
Igwaneza Bruce