Liking cljdoc? Tell your friends :D

b1.geo.core


->arrcljs

(->arr c)
source

->latlonclj/s

(->latlon coordinates)

Convert coordinates (potentially map of {:lat :lon}) to 2-vector.

Convert coordinates (potentially map of `{:lat :lon}`) to 2-vector.
sourceraw docstring

geo->svgclj/s

(geo->svg geo & {:keys [projection] :or {projection identity}})

Convert geoJSON to SVG path data. Kwargs:

:projection fn applied to each coordinate, defaults to identity

Convert geoJSON to SVG path data.
Kwargs:
> *:projection* fn applied to each coordinate, defaults to identity
sourceraw docstring

haversineclj/s

(haversine co1 co2)
(haversine co1 co2 r)

Calculate the great-circle distance between two lat/lon coordinates on a sphere with radius r (defaults to Earth radius).

Calculate the great-circle distance between two lat/lon coordinates on a sphere with radius `r` (defaults to Earth radius).
sourceraw docstring

joincljs

(join c)
(join sep c)
source

mapcljs

(map f c)
source

radius-of-earthclj/s

Radius of OUR AWESOME PLANET, in kilometers

Radius of OUR AWESOME PLANET, in kilometers
sourceraw docstring

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

× close