GeoDistance
GeoDistance[{lat1, lon1}, {lat2, lon2}] gives the geodesic distance between latitude-longitude positions on the Earth.
GeoDistance[loc1, loc2]gives the distance between locations specified by position objects or geographical entities.GeoDistance[{loc1, …, locn}]gives the total distance fromloc1tolocnthrough all the intermediateloci.
Examples
GeoDistance[{40.7, -74.0}, {51.5, -0.1}]GeoDistance[Entity["City", {"NewYork", "NewYork", "UnitedStates"}],
Entity["City", {"London", "GreaterLondon", "UnitedKingdom"}]]Please visit the official Wolfram Language Reference for more details.