Distance

Contents[Hide]

The DISTANCE function computes the as-the-crow-flies distance between a source and destination identified by latitude and longitude.

Distance
Distance

1. Syntax

The DISTANCE function computes the as-the-crow-flies distance between a source and destination identified by latitude and longitude.

DISTANCE(d0,d1,d2,d3,s0)

2. 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.

3. Parameters

  • s0 - Specifies unit to use for the result. 0 for kilometers, 1 for miles. The default is 0.

4. Output

The DISTANCE function generates the following output:

  • The as-the-crow-flies distance between a source and destination identified by latitude and longitude.

5. See also

Dundas Data Visualization, Inc.
500-250 Ferrand Drive
Toronto, ON, Canada
M3C 3G8

North America: 1.800.463.1492
International: 1.416.467.5100

Dundas Support Hours: 7am-6pm, ET, Mon-Fri