Logo Lanfrica

EmmanuelMmanda/Tanzania-GeoLocation-API-for-regions--districts-and-wards

Domaine:

geospatial

Type de record:

software
Créateur:
Emm
Hôte:
The Tanzania GeoData API provides endpoints for accessing data on regions, districts, and wards in Tanzania. This API is useful for applications that need to display or analyze data on the administrative regions of Tanzania. # Tanzania Regions Districts Wards API ## Overview The Tanzania GeoData API provides endpoints for accessing data on regions, districts, and wards in Tanzania. This API is useful for applications that need to display or analyze data on the administrative regions of Tanzania. ## Base URL The base URL for the Tanzania API is tzgeodata.vercel.app. ## Authentication Authentication is not required to access any of the endpoints in this API. ## Endpoints Fetching All Regions Endpoint: ``` GET /api/v1/regions/ ``` This endpoint returns a list of all the regions in Tanzania. Response The response is a JSON object with a single key, regions, which contains a list of region names. Example Response: ```json { "regions": [ "Arusha", "Dar es Salaam", "Dodoma", "Geita", "Iringa", ... ] } ``` Fetching Districts per Region Endpoint: ``` GET /api/v1/regions/ /districts/ ``` This endpoint returns a list of all the districts in the specified region. Path Parameters ``` region_name ``` - The name of the region to fetch districts for. Response The response is a JSON object with a single key, districts, which contains a list of district names. Example Response: ```json { "districts": [ "Arusha City", "Arusha Rural", "Karatu", "Longido", "Monduli", ... ] } ``` Fetching All Districts Endpoint: ```http GET /api/v1/districts/ ``` This endpoint returns a list of all the districts in Tanzania. Response: The response is a JSON object with a single key, districts, which contains a list of district names. Example Response: ```json { "districts": [ "Arusha City", "Arusha Rural", "Babati Rural", "Babati Town", "Bagamoyo", ... ] } ``` #### Fetching Wards per District in a Region Endpoint: ``` GET /api/v1/districts/ /wards/ ``` This endpoint returns a list of all the wards in the specified district. Path Parameters ``` district_name ``` - The name of the district to fetch wards for. Response The response is a JSON object with a single key, wards, which contains a l …

Languages