encode
Encode a list of positions to an encoded polyline string.
Return
the encoded polyline string
Parameters
positions
the list of Position objects to encode
precision
the number of decimal digits to encode (e.g. 5 for 1e5, the standard Google precision)