Background
DHIS2 has provided various API endpoints to conveniently perform numerous CRUD operation. They have been a building blocks for all the DHIS2 apps the community built. These endpoints are mostly complete, comprehensive and well documented. But it has some shortfalls too. We cannot still perform any filters based on user location or specific coordinates. We cannot fetch a nearest organization units, its either all or none.
Introduction
Locator API is an add-on to the DHIS2. This API endpoint provides a new way to retrieve organization unit.
Developers can now request for closest ounit based on a specific coordinates.
Developer can also request for ‘n' numbers of ounits within 'x’ radius surrounding the specific coordinates
Developer can also find a closest ounit that is of specific type or provide specific facility.
Github
Change log
v.0.0.1: Planning