ReplayPolylineDecodeStream
class ReplayPolylineDecodeStream(val encodedPath: String, precision: Int) : Iterator<Point>
Content copied to clipboard
This class is experimental because it is likely to move to mapbox-java.
https://github.com/mapbox/mapbox-java/pull/1518
Parameters
encodedPath
String representing an encoded path string
precision
OSRMv4 uses 6, OSRMv5 and Google uses 5
Constructors
Functions
Link copied to clipboard
fun decode(minDistance: Double, units: String = TurfConstants.UNIT_KILOMETERS): List<Point>
Content copied to clipboard
Decode the next minDistance of the geometry. The input is a exclusive minimum distance to decode. If the current is available it will be added to the beginning of the list. If there are no more events to decode the list will be empty.
Link copied to clipboard