GeoJSON as Clojure Spec https://tools.ietf.org/html/rfc7946
GeoJSON as Clojure Spec https://tools.ietf.org/html/rfc7946
(bbox geojson)
Returns the :bbox present in the geojson object. Otherwise, computes a bounding box with [min-lon, min-lat, max-lon, max-lat]. Note: according to the rfc7946 the values of a bbox array are [west, south, east, north], not [minx, miny, maxx, maxy]
However, for simplicity we calculate them that way
Returns the :bbox present in the geojson object. Otherwise, computes a bounding box with [min-lon, min-lat, max-lon, max-lat]. Note: according to the rfc7946 the values of a bbox array are [west, south, east, north], not [minx, miny, maxx, maxy] However, for simplicity we calculate them that way
(geo-uri geojson)
return a geoUri as specified by the rfc7946. Example: 'geo' URI: geo:lat,lon GeoJSON:{'type': 'Point', 'coordinates': [lon, lat]}
return a geoUri as specified by the rfc7946. Example: 'geo' URI: geo:lat,lon GeoJSON:{'type': 'Point', 'coordinates': [lon, lat]}
(uri geojson)
takes a point or feature and concatenates the coordinates as {longitude},{latitude}
takes a point or feature and concatenates the coordinates as {longitude},{latitude}
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close