mirror of
https://github.com/mapbox/polyline.git
synced 2026-01-18 14:29:16 +00:00
556 B
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.