Hi!
The geospatial search in WDQS now includes ability to sort by distance. This can be achieved in one of two ways:
1. Circular search now has clause to fetch distance from center: bd:serviceParam wikibase:distance ?distance .
This places distance from center to ?distance variable for each found point, which then can be used for sorting.
2. geof:distance function - this function returns distance between any two points. This function can be used on any two points, regardless of usage of the search service.
In both cases, distances are returned in kilometers, other units are not currently supported (maybe in the future).
Please tell me if you notice anything wrong or have any comments/suggestions.
Thanks,