Distance
This applies to: Managed Dashboards, Managed Reports
The Distance function computes the as-the-crow-flies distance between a source and destination identified by latitude and longitude.
Syntax
DISTANCE( d0,d1,d2,d3,s0)
Input
The Distance function requires the following input series:
d0 - The latitude of the starting location.
d1 - The longitude of the starting location.
d2 - The latitude of the ending location.
d3 - The longitude of the starting location.
Parameters
The Distance function accepts the following parameters:
s0 - Specifies unit to use for the result. 0 for kilometers, 1 for miles. The default is 0.
Output
The Distance function generates the following output:
The Distance result set, consisting of distances between each pair of coordinates in kilometers or miles as specified above.
Comments
0 comments
Please sign in to leave a comment.