haversineDistanceKm
Stentor API Reference / stentor-address/src / haversineDistanceKm
Function: haversineDistanceKm()
haversineDistanceKm(
one,two):number
Defined in: packages/stentor-address/src/haversine.ts:9
Calculate the Haversine distance between two points on the Earth.
Parametersβ
oneβ
The first point with latitude and longitude.
latβ
number
lonβ
number
twoβ
The second point with latitude and longitude.
latβ
number
lonβ
number
Returnsβ
number
The distance between the two points in kilometers.