Locator API v1.0 has been used for measuring performance but the parameters are updated to match v2.0 to avoid future confusion. Please refer to “Using the API” section for more details regarding v2.0 parameters
Feature | DHIS2 | Custom API | ||
---|---|---|---|---|
URL | Response | URL | Response | |
Search Org Units close to a Lat/Long | NOT POSSIBLE | {{LocatorAPI_host}}/api/v1/locator?pageSize=10&coordinates=-10.466433,36.130097&distance=50&unit=km | 1905ms | |
Search by Org Unit standard attribute - code | {{dhis2_host}}/api/organisationUnits.json?filter=code:eq:TZ-LOC-USSD-0062 | 585ms | {{LocatorAPI_host}}/api/v1/locator?code=TZ-LOC-USSD-0062 | 266ms |
Search by Org Unit standard attribute - phoneNumber | {{dhis2_host}}/api/organisationUnits.json?filter=phoneNumber:like:255763069592 | 500ms | {{LocatorAPI_host}}/api/v1/locator?phoneNumber=255763069592 | 408ms |
Search by Org Unit standard attribute - 2 or more (code & name) | {{dhis2_host}}/api/organisationUnits.json?filter=code:like:TZ-LOC-USSD&filter=name:like:uzi%20Dispensary | 99ms | {{LocatorAPI_host}}/api/v1/locator?facilityName=uzi%20Dispensary&code=TZ-LOC-USSD | 289ms |
Search by Org Unit custom attribute - text (single value) | {{dhis2_host}}/api/organisationUnits.json?filter=attributeValues.attribute.id:eq:NtzCfaijlfH&filter=attributeValues.value:like:Public&pageSize=10 | 11.36s | {{LocatorAPI_host}}/api/v1/locator?pageSize=10&type=Public | 551 |
Search by Org Unit custom attribute - text (coma separated) | POSSIBLE, but answer could be inaccurate {{dhis2_host}}/api/organisationUnits.json?filter=attributeValues.attribute.id:eq:mQizDsaeEGi&filter=attributeValues.value:like:OCP,IUD&fields=:all | 18.42s | {{LocatorAPI_host}}/api/v1/locator?pageSize=10&service=OCP,IUD | 611ms |
Search by Org Unit custom attribute - number/ | POSSIBLE, but answer could be inaccurate {{dhis2_host}}/api/organisationUnits.json?filter=attributeValues.attribute.id:eq:fN5GReisc6D&fields=:all&filter=attributeValues.value:like:254733683043&pageSize=10 | 11.38s | {{LocatorAPI_host}}/api/v1/locator?pageSize=10&whatsapp=254733683043 | 485ms |
Search by Org Unit custom attribute - 2 or more | NOT POSSIBLE | {{LocatorAPI_host}}/api/v1/locator?pageSize=10&type=Public&service=CNT | 389ms | |
Search by Org Unit standard + custom attribute | {{dhis2_host}}/api/organisationUnits.json?filter=name:ilike:Hospital&filter=attributeValues.attribute.id:eq:NtzCfaijlfH&filter=attributeValues.value:like:Private&pageSize=10&fields=:all | 571ms | {{LocatorAPI_host}}/api/v1/locator?pageSize=10&type=Private&name=Hospital | 470ms |