Liking cljdoc? Tell your friends :D

geo.geohash

Working with geohashes.

Working with geohashes.
raw docstring

bboxclj

(bbox geohash)
source

bbox-geomclj

(bbox-geom geohash)
source

character-precisionclj

(character-precision geohash)
source

concentric-square-ringsclj

(concentric-square-rings origin)
(concentric-square-rings origin n)

Given a single geohash, returns a lazy sequence of concentric square rings of geohashes around it. The first element is [hash], the second element is [northern-neighbor, northwest-neighbor, west-neighbor, ...], the third element is the list of all geohashes around those, and so on.

Given a single geohash, returns a lazy sequence of concentric square rings
of geohashes around it.  The first element is [hash], the second element is
[northern-neighbor, northwest-neighbor, west-neighbor, ...], the third
element is the list of all geohashes around *those*, and so on.
sourceraw docstring

degrees-precision-lat-cacheclj

source

degrees-precision-long-cacheclj

source

eastern-neighborclj

(eastern-neighbor h)
source

geohashclj

(geohash string)
(geohash point precision)
(geohash lat long precision)

Creates a geohash from a string, or at the given point with the given bit precision.

Creates a geohash from a string, or at the given point with the given bit
precision.
sourceraw docstring

geohash-centerclj

(geohash-center geohash)

Returns the center point of a geohash.

Returns the center point of a geohash.
sourceraw docstring

geohash-errorclj

(geohash-error geohash)

Returns the error (i.e. the distance in meters between opposite corners) of the given geohash.

Returns the error (i.e. the distance in meters between opposite corners) of
the given geohash.
sourceraw docstring

geohash-max-errorclj

(geohash-max-error bits)

Returns the maximum error (i.e. the distance between opposite corners of the geohash bounding box) for a given number of geohash bits. Geohashes are least precise at the equator.

Returns the maximum error (i.e. the distance between opposite corners of the
geohash bounding box) for a given number of geohash bits. Geohashes are least
precise at the equator.
sourceraw docstring

geohash-midline-areaclj

(geohash-midline-area geohash)

An estimate of a geohash's area, in square meters, based on its midline dimensions.

An estimate of a geohash's area, in square meters, based on its midline
dimensions.
sourceraw docstring

geohash-midline-dimensionsclj

(geohash-midline-dimensions geohash)

Returns a vector of [lat-extent long-extent], where lat-extent is the length of the geohash through the midpoint of top and bottom, and long-extent is the length of the geohash through the midpoint of left and right sides. All figures in meters.

Returns a vector of [lat-extent long-extent], where lat-extent is the length
of the geohash through the midpoint of top and bottom, and long-extent is the
length of the geohash through the midpoint of left and right sides. All
figures in meters.
sourceraw docstring

geohashes-intersectingclj

(geohashes-intersecting shape desired-level)
(geohashes-intersecting shape min-level max-level)
source

geohashes-nearclj

(geohashes-near point radius precision)

Returns a list of geohashes of the given precision within radius meters of the given point.

Returns a list of geohashes of the given precision within radius meters of
the given point.
sourceraw docstring

least-upper-bound-indexclj

(least-upper-bound-index numbers target)

Given a sequence of numbers in descending order, finds the index of the largest number which is just greater than the target.

Given a sequence of numbers in descending order, finds the index of the
largest number which is just greater than the target.
sourceraw docstring

neighborsclj

(neighbors h)
source

northern-neighborclj

(northern-neighbor h)
source

shape->precisionclj

(shape->precision shape)

Estimates the precision which generates geohash regions on the scale of the given shape.

Estimates the precision which generates geohash regions on the scale of the
given shape.
sourceraw docstring

significant-bitsclj

(significant-bits geohash)
source

southern-neighborclj

(southern-neighbor h)
source

square-ringclj

(square-ring origin n)

Given a geohash at the northeast corner of a square (n-2) geohashes on a side, returns a list of geohashes in a path around the square, such that the first entry in the list is the northeast corner of a square (n) geohashes on a side.

O is the origin argument F is the first hash in the returned sequence L is the last hash in the returned sequence E represents the last and first in the sequence

n=1 3 5 7 +----LF +--LF | O| +LF | O| | | E |O| | | | | +-+ | | | | +---+ | | +-----+

If n is one, returns [origin].

This algorithm is undefined at the poles.

Given a geohash at the northeast corner of a square (n-2) geohashes on a
side, returns a list of geohashes in a path around the square, such that the
first entry in the list is the northeast corner of a square (n) geohashes on
a side.

O is the origin argument
F is the first hash in the returned sequence
L is the last hash in the returned sequence
E represents the last *and* first in the sequence

n=1   3      5        7
                   +----LF
           +--LF   |    O|
     +LF   |  O|   |     |
  E  |O|   |   |   |     |
     +-+   |   |   |     |
           +---+   |     |
                   +-----+

If n is one, returns [origin].

This algorithm is undefined at the poles.
sourceraw docstring

stringclj

(string geohash)

Returns the base32 encoded string value of a geohash.

Returns the base32 encoded string value of a geohash.
sourceraw docstring

subdivideclj

(subdivide geohash)
(subdivide geohash precision)

Given a geohash, returns all geohashes inside it, of a given precision.

Given a geohash, returns all geohashes inside it, of a given precision.
sourceraw docstring

subdivide-levelsclj

(subdivide-levels geohash min-precision max-precision)

Given a geohash and a range of levels, return all geohashes inside the given geohash at all the levels in the range

Given a geohash and a range of levels, return all geohashes inside the
given geohash at all the levels in the range
sourceraw docstring

western-neighborclj

(western-neighbor h)
source

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

× close