Distance sort not working
Summary
(Summarize the bug encountered concisely)
Steps to reproduce
(How one can reproduce the issue - this is very important)
Example Project
(If possible, please create an example project here on GitLab.com that exhibits the problematic behaviour, and link to it here in the bug report)
(If you are using an older version of GitLab, this will also determine whether the bug has been fixed in a more recent version)
Which version of the software did you use ?
Latest master.
What is the current bug behavior?
Sort by distance doesn't provide any data.
What is the expected correct behavior?
Should provide data (places) from the filter, sorted by their distance from the provided coordinates.
Relevant logs and/or screenshots
e.g.
{
"filter": {
"type": "value",
"arguments": {
"field": "type",
"value": "building"
}
},
"sort": [
{
"type": "distance",
"arguments": {
"field": "geo.point.coordinates",
"position": [
11.123,
50.123
]
},
"order": "asc"
}
]
}
gives back empty data array:
{
"data": [],
"facets": [],
"pagination": {
"count": 0,
"offset": 0,
"total": 0
},
"stats": {
"time": 2
}
}