# Extract coordinates fro organization units- Solved

**URL:** <https://community.dhis2.org/t/extract-coordinates-fro-organization-units-solved/47007>\
**Category:** Support - Assistance technique\
**Created:** [25 April 2022 10:29 UTC](https://community.dhis2.org/t/extract-coordinates-fro-organization-units-solved/47007 "2022-04-25T10:29:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenyuri](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/kenyuri/32/49666_2.png) [@Kenyuri](https://community.dhis2.org/u/Kenyuri)\
**Post date:** [25 April 2022 10:29 UTC](https://community.dhis2.org/t/extract-coordinates-fro-organization-units-solved/47007/1 "2022-04-25T10:29:56Z")

</div>

Hello, I’m trying to extract coordinates for the organization unit but the API doesn’t return any coordinates, it only returns the following columns; code, name, id.

This is the api I’m using [https://play.dhis2.org/2.35.13/api/organisationUnits.json?fields=id,name,code,featureType,coordinates&paging=false](https://play.dhis2.org/2.35.13/api/organisationUnits.json?fields=id,name,code,featureType,coordinates&paging=false)

Kindly assist where necessary. @stratosilva @Edward_Robinson @Gassim

---

<div class="post-metadata">

**Author:** ![Gassim](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/gassim/32/35347_2.png) [@Gassim](https://community.dhis2.org/u/Gassim)\
**Post date:** [25 April 2022 10:52 UTC](https://community.dhis2.org/t/extract-coordinates-fro-organization-units-solved/47007/2 "2022-04-25T10:52:50Z")

</div>

Hi @Kenyuri,  
Thank you for your post!  
actually, please try to use geometry property:  
[https://play.dhis2.org/2.35.13/api/organisationUnits.json?fields=id,name,code,geometry&paging=false](https://play.dhis2.org/2.35.13/api/organisationUnits.json?fields=id,name,code,geometry&paging=false)

* * *

The api request you posted is requesting featureType and coordinates from the /organisationUnits endpoint but if you look at the api/schema, the following properties are the only ones supported:

> Organisation Unit
> 
> **properties**  
> parent  
> publicAccess  
> type  
> path  
> lastUpdated  
> children  
> translations  
> uid  
> href  
> groups  
> displayDescription  
> lastUpdatedBy  
> userGroupAccesses  
> created  
> attributeValues  
> displayFormName  
> users  
> phoneNumber  
> userAccesses  
> name  
> dataSets  
> legendSets  
> programs  
> shortName  
> dimensionItemType  
> favorites  
> aggregationType  
> code  
> access  
> displayName  
> description  
> contactPerson  
> displayShortName  
> externalAccess  
> periodOffset  
> formName  
> openingDate  
> email  
> address  
> memberCount  
> url  
> closedDate  
> geometry  
> comment  
> user

Hope that helps! 👍

---

<div class="post-metadata">

**Author:** ![Kenyuri](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/kenyuri/32/49666_2.png) [@Kenyuri](https://community.dhis2.org/u/Kenyuri)\
**Post date:** [25 April 2022 10:55 UTC](https://community.dhis2.org/t/extract-coordinates-fro-organization-units-solved/47007/3 "2022-04-25T10:55:55Z")

</div>

I need an API that can return the geometry for the organization units

---

<div class="post-metadata">

**Author:** ![Gassim](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/gassim/32/35347_2.png) [@Gassim](https://community.dhis2.org/u/Gassim)\
**Post date:** [25 April 2022 10:57 UTC](https://community.dhis2.org/t/extract-coordinates-fro-organization-units-solved/47007/4 "2022-04-25T10:57:14Z")

</div>

Yes, thanks, please give this one a try [/api/organisationUnits.json?fields=id,name,code,geometry&paging=false](https://play.dhis2.org/2.35.13/api/organisationUnits.json?fields=id,name,code,geometry&paging=false)

---

<div class="post-metadata">

**Author:** ![Kenyuri](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/kenyuri/32/49666_2.png) [@Kenyuri](https://community.dhis2.org/u/Kenyuri)\
**Post date:** [25 April 2022 10:58 UTC](https://community.dhis2.org/t/extract-coordinates-fro-organization-units-solved/47007/5 "2022-04-25T10:58:11Z")

</div>

> [@Gassim](#):
>
> [/api/organisationUnits.json?fields=id,name,code,geometry&paging=false](https://play.dhis2.org/2.35.13/api/organisationUnits.json?fields=id,name,code,geometry&paging=false)

Thank you so much, its working.

---

<div class="post-metadata">

**Author:** ![Gassim](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/gassim/32/35347_2.png) [@Gassim](https://community.dhis2.org/u/Gassim)\
**Post date:** [25 April 2022 10:58 UTC](https://community.dhis2.org/t/extract-coordinates-fro-organization-units-solved/47007/6 "2022-04-25T10:58:43Z")

</div>

Great, thanks! Please mark as solved 😁👍
