-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Google Polyline Encoder/Decoder -- @package googlepolyline @version 0.1.0.1 -- | 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 Show LatLong instance Eq LatLong