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

(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

(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

(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

Transducer stack for decoding.

Transducer stack for decoding.
sourceraw docstring

decompressclj

(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

(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

(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

Transducer stack for encoding.

Transducer stack for encoding.
sourceraw docstring

latlonclj

(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

(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

(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

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

× close