# Wolfram Function Repository

Instant-use add-on functions for the Wolfram Language

Function Repository Resource:

Find the spatial distance between two points on Earth

Contributed by:
Peter Cullen Burbery

ResourceFunction["GeoSpatialDistance"][ finds the spatial distance between Here and | |

ResourceFunction["GeoSpatialDistance"][ finds the spatial distance between locations on Earth.loc_{2} |

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.

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]= |

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]= |

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]= |

- 1.1.0 – 22 August 2022
- 1.0.0 – 16 August 2022

This work is licensed under a Creative Commons Attribution 4.0 International License