decode

fun decode(encoded: String, precision: Int = 5): List<Position>(source)

Decode an encoded polyline string to a list of positions.

Return

the decoded list of Position objects

Parameters

encoded

the encoded polyline string

precision

the number of decimal digits used during encoding (e.g. 5 for the standard Google precision)

Throws

if the encoded string is malformed or truncated