encode

fun encode(path: List<Coords>, precision: Int = 5): String

Encodes a sequence of Points into an encoded path string.

Return

a String representing a path string

Since

1.0.0

Parameters

path

list of Coordss making up the line

precision

OSRMv4 uses 6, OSRMv5 and Google uses 5