Translations:Wikidata Query Service/User Manual/61/en

The function $dist returns distance between two points on Earth, in kilometers.