googlepolyline-0.1.0.0: Google Polyline Encoder/Decoder

Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Text.GooglePolyline

Description

Provides encoding and decoding of Google Polyline text which is used in the Google Maps API. A description of the polyline format and algorithm can be found at

https://developers.google.com/maps/documentation/utilities/polylinealgorithm.

Synopsis

Documentation

data LatLong Source

Type to encapsulate latitude/longitude pairs.

Constructors

LatLong 

Instances

encode :: [LatLong] -> Text Source

Encodes a sequence of Latitude/Longitude points into Google Polyline text. Inverse of decode.

decode :: Text -> [LatLong] Source

Decodes Google Polyline text to a sequence of Latitude/Longitude points. Inverse of encode.