Skip to content
Pure Haskell module for encoding/decoding Google Polylines
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
GPolyline.hs
LICENSE
README.md
polydecode.hs
polyws.hs

README.md

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.

You can’t perform that action at this time.