Encodes a sequence of points (latitude, longitude pairs) into a polyline string with the given precision.
The precision parameter specifies the number of decimal places in the coordinates (5 for polyline5,
6 for polyline6), with a maximum value of 7 which corresponds to ~1cm precision at the equator.