PolylineUtils

object PolylineUtils

https://github.com/mapbox/mapbox-java/blob/cf7d7bfd8b74835a623fb0bc9e064e3b86aa2ccc/services-geojson/src/main/java/com/mapbox/geojson/utils/PolylineUtils.java

Polyline utils class contains method that can decode/encode a polyline, simplify a line, and more.

Since

1.0.0

Functions

Link copied to clipboard
fun decode(encodedPath: String, precision: Int = 5): List<Coords>

Decodes an encoded path string into a sequence of Coords.

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

Encodes a sequence of Points into an encoded path string.