GeoDistanceList
GeoDistanceList[{loc1, loc2, …, locn}] returns the list of geodesic distances between consecutive pairs of locations.
Examples
GeoDistanceList[{
Entity["City", {"NewYork", "NewYork", "UnitedStates"}],
Entity["City", {"Chicago", "Illinois", "UnitedStates"}],
Entity["City", {"LosAngeles", "California", "UnitedStates"}]
}]GeoDistanceList[{GeoPosition[{40.7, -74.0}], GeoPosition[{34.0, -118.2}]}]Please visit the official Wolfram Language Reference for more details.