(->latlon coordinates)
Convert coordinates (potentially map of {:lat :lon}
) to 2-vector.
Convert coordinates (potentially map of `{:lat :lon}`) to 2-vector.
(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
(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).
Radius of OUR AWESOME PLANET, in kilometers
Radius of OUR AWESOME PLANET, in kilometers
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close