XUND API Documentation

LocationFilter

LocationFilter extends FilterBase

LocationFilter is a filter type that can be used to filter Medical Services by location.

This filter type has no additional data and probably should not be displayed.

Sending Location to POST /v1/services/filters/apply endpoint is mandatory.

Property name

Property type

Property description

text

string

Localised text of the Filter

type

FilterType = ‘LOCATION’

Type of the Filter

Example response

An example of a LocationFilter retrieved from GET /v1/services/filters endpoint looks like this:

JSON
{
    "location": {
        "text": "Location",
        "type": "LOCATION"
    }
}

Example request

After the filters were rendered, filled and submitted by the user, the location value should be sent to POST /v1/services/filters/apply endpoint.

Location filter is always mandatory

The request body would look like this:

JSON
{
    "location": {
        "latitude": 48.218323, 
        "longitude": 16.324020
    }
}

This will return the Medical Services nearest to the sent coordinate, restricted by the endpoint’s limits.

Services will always be sorted by distance in ascending order.