Logo Lanfrica

devcenter-square/states-cities

Domain:

digital infrastructuregeospatial

Record type:

software
Creator:
dev
Host:
Providing a public API for states and cities in Nigeria States & Cities. =================== Providing a public API for states and cities in Nigeria ---------- About. ------------- It just a simple API that lets you get a list of states, cities and local government areas in Nigeria. In JSON duh. It's made for the developer who wants to make a simple drop down list of Nigerian locations for any app in any language. (It's also not limited to that developer's use case). It's built in Python with Flask using a local JSON dataset. URI and Versioning. ------------- We hope to improve this API over time, and these changes won't always be backward compatible, so we're going to version the API. This first iteration will be live at overflowing-strength-produc… and is structured as described below. ---------- ## States To get a list of all states in Nigeria, call the endpoint at overflowing-strength-produc…. All states have the following properties: Field | Description ------|------------ name | The name of the state. capital | The capital of the state. latitude | The latitude of the state. longitude | The longitude of the state. States are identified using their names or a code, which are unique. For example, a state: overflowing-strength-produc… ```json { "name": "Lagos", "capital": "Ikeja", "latitude": 6.5269033, "longitude": 3.5774005 } ``` ## Local Government Areas (LGAs) LGAs belong to a state and they are identified by their names. All LGAs have the following properties: Field | Description ------|------------ name | The name of the LGA. For example, LGAs in Kaduna: overflowing-strength-produc… ```json [ { "name": "Birnin Gwari" }, { "name": "Chikun" }, { "name": "Giwa" }, { "name": "Ikara" }, { "name": "Igabi" }, { "name": "Jaba" }, { "name": "Jema'a" }, { "name": "Kachia" }, { "name": "Kaduna North" }, { "name": "Kaduna South" }, { "name …

Languages

Licenses