-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Google Polyline Encoder/Decoder
--
-- Encoding and decoding functions for Google Maps' polyline format.
@package googlepolyline
@version 0.1.0.2
-- | 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.
module Data.Text.GooglePolyline
-- | Type to encapsulate latitude/longitude pairs.
data LatLong
LatLong :: Double -> Double -> LatLong
[latitude] :: LatLong -> Double
[longitude] :: LatLong -> Double
-- | Encodes a sequence of Latitude/Longitude points into Google Polyline
-- text. Inverse of decode.
encode :: [LatLong] -> Text
-- | Decodes Google Polyline text to a sequence of Latitude/Longitude
-- points. Inverse of encode.
decode :: Text -> [LatLong]
instance GHC.Classes.Eq Data.Text.GooglePolyline.LatLong
instance GHC.Show.Show Data.Text.GooglePolyline.LatLong