Liking cljdoc? Tell your friends :D

hiposfer.kamal.router.util.geometry


angleclj

(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)
sourceraw docstring

arc-lengthclj

(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
sourceraw docstring

bearingclj

(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)
sourceraw docstring

contains?clj

(contains? bbox point)

checks if point is contained in bbox

checks if point is contained in bbox
sourceraw docstring

degree-lenclj

source

earth-distanceclj

(earth-distance p1 p2)
(earth-distance lon-1 lat-1 lon-2 lat-2)
source

euclideanclj

(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
sourceraw docstring

euclidean-pow2clj

(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
sourceraw docstring

haversineclj

(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
sourceraw docstring

RADIOUSclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close