Liking cljdoc? Tell your friends :D

com.michaelgaare.clojure-polyline

Functions to encode and decode Google polyline algorithm.

Functions to encode and decode Google polyline algorithm.
raw docstring

compressclj/s

(compress rf)

Transducer that compresses polyline coordinates by turning them into deltas from the previous coord.

Transducer that compresses polyline coordinates by turning them into
deltas from the previous coord.
sourceraw docstring

coord->integerclj/s

(coord->integer coord)

Returns the coord (a double) multiplied by 100,000 and rounded to nearest integer.

Returns the coord (a double) multiplied by 100,000 and rounded to
nearest integer.
sourceraw docstring

decodeclj/s

(decode polystring)

Takes a polyline-encoded string and returns a collection of decoded [lat long] coordintes.

Takes a polyline-encoded string and returns a collection of
decoded [lat long] coordintes.
sourceraw docstring

decoderclj/s

Transducer stack for decoding.

Transducer stack for decoding.
sourceraw docstring

decompressclj/s

(decompress rf)

Transducer that decompresses polyline coordinates that have been compressed by turning them into deltas from the previous coord.

Transducer that decompresses polyline coordinates that have been
compressed by turning them into deltas from the previous coord.
sourceraw docstring

encodeclj/s

(encode coords)

Main polyline encoding function. Takes a collection of [lat long] tuples and returns the polyline encoded string representation.

Main polyline encoding function. Takes a collection of [lat long]
tuples and returns the polyline encoded string representation.
sourceraw docstring

encode-coordclj/s

(encode-coord x)

Returns the polyline encoded string of given coordinate (a double between -180 and 180).

Returns the polyline encoded string of given coordinate (a double
between -180 and 180).
sourceraw docstring

encoderclj/s

Transducer stack for encoding.

Transducer stack for encoding.
sourceraw docstring

integers->coordclj/s

(integers->coord [lat lon :as integers])

Returns the coord (a pair of doubles) divided by 100,000.

Returns the coord (a pair of doubles) divided by 100,000.
sourceraw docstring

latlonclj/s

(latlon [lon lat :as coord])

Converts a coordinate in [lon lat] format to [lat lon].

Converts a coordinate in [lon lat] format to [lat lon].
sourceraw docstring

lonlatclj/s

(lonlat [lat lon :as coord])

Converts a coordinate in [lat lon] format to [lon lat].

Converts a coordinate in [lat lon] format to [lon lat].
sourceraw docstring

poly-numberclj/s

(poly-number rf)

Transducer that transforms characters from a polyline string into the raw decoded numbers, without double or negative conversion.

Transducer that transforms characters from a polyline string into the
raw decoded numbers, without double or negative conversion.
sourceraw docstring

precisionclj/s

source

roundclj/s

(round v)
source

strclj/s

source

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

× close