Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 614 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 614 Bytes

gpolyline

Pure Haskell module for encoding/decoding Google Polylines

GPolyline.hs exports

encodeline :: [(Double,Double)] -> String
decodeline :: String -> [(Double,Double)]
encodeunsigned :: Int -> String
decodeunsigned :: String -> Int

The pair of doubles are Latitude and Longitude. You will mainly use encodeline and decodeline, but the functions for unsigned can be useful for single numbers such as zoom level.

polydecode.hs is a simple command line application using GPolyline.hs for decoding.
polyws.hs is a webservice (including a html interface for testing) using scotty.