Extract coordinates for level 2 org units

Hello All,
Kindly guide/help to extract the org unit with its coordinates
for example, I wish to pull the geocoord for the organization units that fall within Bombali in dhis2 play.
This is the API that I have been using https://play.dhis2.org/2.31.0/api/organisationUnits.csv?fields=name,code,featureType,coordinates&paging=false and it brings all the organisation unit in the system but am only interested for bombali

DHIS2 Version: 2.28

Kindly assist where necessary

1 Like

Hi,

To get only Bombali

https://play.dhis2.org/2.31.9/api/organisationUnits.json?fields=name,code,featureType,coordinates&paging=false&filter=name:eq:Bombali

To get Bombali’s children:

https://play.dhis2.org/2.31.9/api/organisationUnits.json?fields=id,name,code,featureType,coordinates&paging=false&filter=parent.id:eq:fdc6uOvgoji

2 Likes

More on filters here: