polyline/API.md
2013-12-10 14:38:11 -05:00

329 B

polyline.decode(string[, precision])

Takes a string representation of 1+ coordinate pairs and returns an array of lat, lon arrays. If not specified, precision defaults to 5.

polyline.encode(array[, precision])

Takes an array of lat, lon arrays and returns an encoded string. If not specified, precision defaults to 5.