polyline/API.md
2012-07-26 15:45:00 -04:00

556 B

polyline.encodeCoordinate(coordinate)

Takes a coordinate - a single number - and returns an encoded string.

polyline.decodeCoordinate(string)

Takes a string representation of a single coordinate and returns a number

polyline.decodeLine(string)

Takes a string representation of 1+ coordinate pairs and returns an array of lat, lon arrays.

polyline.encodePoint(x, y)

Takes two coordinates - two numbers - and returns an encoded string.

polyline.encodeLine(string)

Takes an array of lat, lon arrays and returns an encoded string.