pgeocode.haversine_distance
- pgeocode.haversine_distance(x, y)[source]
Haversine (great circle) distance
Calculate the great circle distance between two points on the earth (specified in decimal degrees)
- Parameters:
x (array, shape=(n_samples, 2)) – the first list of coordinates (degrees)
y (array: shape=(n_samples, 2)) – the second list of coordinates (degress)
- Returns:
d – the distance between corrdinates (km)
- Return type:
array, shape=(n_samples,)
References