Logo Lanfrica
  • Accueil
  • Atlas
  • Analyses
  • Documentation
  • Sign in

© 2026 Lanfrica. Tous droits réservés. Tous les droits d'auteur des ressources affichées sur le site Web Lanfrica appartiennent aux détenteurs de droits d'auteur d'origine, sauf indication contraire explicite.

kozera920/rwanda-location-lookup

Domaine:

geospatial

Type de record:

software
Créateur:
koz
Hôte:
# rwanda-location-lookup Convert map coordinates to Rwanda's full administrative hierarchy in one call. Give the package a latitude and longitude, and it returns: - Province - District - Sector - Cell - Village Bundled boundary data is included, so developers can install and use it directly without downloading shapefiles. `lookup()` auto-loads bundled GeoJSON and now handles Vite optimized-deps paths without manual `public/geo` copy steps. ## Install ```bash npm install rwanda-location-lookup ``` ## Demo Live demo: rwanda-location-lookup.vercel.app Use it to test: - Coordinates to Province, District, Sector, Cell, Village - Current device location lookup - Reverse lookup from hierarchy to center coordinates ## Quick Start ```js import { lookup } from "rwanda-location-lookup"; const result = await lookup({ latitude: -1.944, longitude: 30.062, }); console.log(result); ``` Example output: ```js { province: "Kigali City", district: "Nyarugenge", sector: "Nyarugenge", cell: "Kiyovu", village: "Ishema", ids: { province: 1, district: 11, sector: 1109, cell: 110903, village: "11090308" } } ``` ## API (Short and Clean) - `lookup(...)` : Async one-call lookup using bundled Rwanda data. - `loadData()` : Async load + cache bundled data once. - `lookupByCoords(...)` : Sync lookup using coordinates and already-loaded data. - `lookupByPoint(...)` : Sync lookup using a GeoJSON Point and already-loaded data. - `toPoint(...)` : Convert `{ latitude, longitude }` (or `{ lat, lng }`) to a GeoJSON Point. - `validateData(...)` : Validate the `districts/sectors/cells/villages` FeatureCollections. - `center(...)` : Async reverse lookup using bundled data. Provide hierarchy names/ids and get center coordinates. - `centerBy(...)` : Sync reverse lookup using already-loaded data. ## High-Performance Usage (Many Requests) ```js import { loadData, lookupByCoords } from "rwanda-location-lookup"; const data = await loadData(); const a = lookupByCoords({ latitude: -1.94 …

Visit

github.com

Similaires

DeogratiasNiyitanga/Rwanda-Administrative-Location-Pluginendafk/msisdn-lookupwilliamtessa27/cm-phone-lookupFuzApp/Postal-Code-Lookup-APIPeterMakori/Word-Lookup-Mini-Project-MurageKabui/KPLC-Tokens-LookUp-Tool

DeogratiasNiyitanga/Rwanda-Administrative-Location-Plugin

# Rwanda Administrative Location Selector — Joget DX 8 Plugin A custom form element that lets users

endafk/msisdn-lookup

Recover phone numbers from hashed MPesa Daraja callbacks. <1ms lookups, pure Python stdlib. # MSISD

williamtessa27/cm-phone-lookup

Professional JavaScript library for multi-country African mobile operator detection with unified API

FuzApp/Postal-Code-Lookup-API

Postal code API for Nigeria with FastAPI, PostgreSQL/PostGIS # 🇳🇬 Nigeria Postal Code API FUZAPP A

PeterMakori/Word-Lookup-Mini-Project-

This is a Word Lookup Mini Project which is an Android app that uses RecyclerView and an adapter tha

MurageKabui/KPLC-Tokens-LookUp-Tool

Unofficial web tool and API for accessing Kenya Power (KPLC) prepaid token purchase history. Feature