(angle bearing-1 bearing-2)
find the angle (degrees) between two bearings (also in degrees)
find the angle (degrees) between two bearings (also in degrees)
(arc-length coordinates)
given a sequence of [lon lat] points like those of geojson LineString returns the total distance traveled along the line
given a sequence of [lon lat] points like those of geojson LineString returns the total distance traveled along the line
(bearing p1 p2)
return a Number between 0 and 360 indicating the clockwise angle from true north to the direction of travel (p1 -> p2)
return a Number between 0 and 360 indicating the clockwise angle from true north to the direction of travel (p1 -> p2)
(contains? bbox point)
checks if point is contained in bbox
checks if point is contained in bbox
(euclidean p1 p2)
computes the euclidean distance between p1 and p2 being both of them geo-points
computes the euclidean distance between p1 and p2 being both of them geo-points
(euclidean-pow2 p1 p2)
computes the squared euclidean distance between p1 and p2 being both of them {lat, lon} points. Use only if you interested in performance and not on the real value since the square root is an expensive computation
computes the squared euclidean distance between p1 and p2 being both of them {lat, lon} points. Use only if you interested in performance and not on the real value since the square root is an expensive computation
(haversine p1 p2)
(haversine lon-1 lat-1 lon-2 lat-2)
Compute the great-circle distance between two points on Earth given their longitude and latitude in DEGREES. The distance is computed in meters
Compute the great-circle distance between two points on Earth given their longitude and latitude in DEGREES. The distance is computed in meters
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close