Locations
Overview
The first output is a searchable list of administrative locations in Uganda, all the way from regions down to villages which is available as:
- Table - a searcheable and navigable list of locations
- API endpoints to allow viewing the details of the locations
Roadmap
The road map for this is as below, feel free to send comments to opendata at ssmusoke.dev
- Exporting the data into CSV
- Adding more data elements to the locations - currently its only name and parent
- Making the filters on the displayed list of locations dependent on each other, if a user selects one filter, the filters that follow it only contain the data related to that filter
API Code Examples
The hierarcy of the administrative regions is Region --> Sub-Region --> District --> County --> Sub-County --> Parish --> Village
- Regions
- List:
Single:curl --location 'https://opendata.ssmusoke.dev/api/locations/regions/'
curl --location 'https://opendata.ssmusoke.dev/api/locations/regions/2'
- Sub-regions
- All:
Filtered:curl --location 'https://opendata.ssmusoke.dev/api/locations/sub-regions/'
Single:curl --location 'https://opendata.ssmusoke.dev/api/locations/sub-regions?filter[region]=2'
curl --location 'https://opendata.ssmusoke.dev/api/locations/sub-regions/6'
- Districts
- All:
Filtered:curl --location 'https://opendata.ssmusoke.dev/api/locations/districts/'
Single:curl --location 'https://opendata.ssmusoke.dev/api/locations/districts?filter[subregion]=5'
curl --location 'https://opendata.ssmusoke.dev/api/locations/districts/24'
- Counties
- All:
Filtered:curl --location 'https://opendata.ssmusoke.dev/api/locations/counties/'
Single:curl --location 'https://opendata.ssmusoke.dev/api/locations/counties?filter[district]=20'
curl --location 'https://opendata.ssmusoke.dev/api/locations/counties/50'
- Sub-Counties
- All:
Filtered:curl --location 'https://opendata.ssmusoke.dev/api/locations/sub-counties/'
Single:curl --location 'https://opendata.ssmusoke.dev/api/locations/sub-counties?filter[county]=12'
curl --location 'https://opendata.ssmusoke.dev/api/locations/sub-counties/50'
- Parishes
- All:
Filtered:curl --location 'https://opendata.ssmusoke.dev/api/locations/parishes/'
Single:curl --location 'https://opendata.ssmusoke.dev/api/locations/parishes?filter[subcounty]=25'
curl --location 'https://opendata.ssmusoke.dev/api/locations/parishes/100'
- Villages
- All:
Filtered:curl --location 'https://opendata.ssmusoke.dev/api/locations/villages/'
Single:curl --location 'https://opendata.ssmusoke.dev/api/locations/villages?filter[parish]=30'
curl --location 'https://opendata.ssmusoke.dev/api/locations/villages/250'