Function Repository Resource:

# GeoSpatialDistance

Find the spatial distance between two points on Earth

Contributed by: Peter Cullen Burbery
 ResourceFunction["GeoSpatialDistance"][loc] finds the spatial distance between Here and loc. ResourceFunction["GeoSpatialDistance"][loc1,loc2] finds the spatial distance between locations loc1 and loc2 on Earth.

## Details

The spatial distance is the straight-line distance between two points on Earth, or the distance travelled if one could tunnel through the Earth from one point to the other.
The distance is returned in the unit system specified by \$UnitSystem.
To find the position of a location like a city or building with a string, use the resource function WikidataGeoPosition.

## Examples

### Basic Examples (3)

Find the spatial distance between your location and the North and South Poles:

 In[1]:=
 Out[1]=
 In[2]:=
 Out[2]=

Find the spatial distance between your location and its antipode:

 In[3]:=
 Out[3]=

Find the distance between New York City and Paris, France:

 In[4]:=
 Out[4]=

### Applications (2)

The distance from Beijing to its antipode city:

 In[5]:=
 Out[5]=
 In[6]:=
 Out[6]=

Compare the direct distance to the geodesic distance:

 In[7]:=
 Out[7]=

### Properties and Relations (2)

Compare and contrast with GeoDistance:

 In[8]:=
 Out[8]=
 In[9]:=
 Out[9]=
 In[10]:=
 Out[10]=

Find the time it would take to travel at the speed of light to Null Island:

 In[11]:=
 Out[11]=

Peter Burbery

## Version History

• 1.1.0 – 22 August 2022
• 1.0.0 – 16 August 2022

## Author Notes

I wanted to add an example with WikidataGeoPosition but its not functioning correctly right now. I was able to add an example with WikidataGeoPosition