ReplayPolylineDecodeStream

class ReplayPolylineDecodeStream(val encodedPath: String, precision: Int) : Iterator<Point>

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

Link copied to clipboard
fun ReplayPolylineDecodeStream(encodedPath: String, precision: Int)

Functions

Link copied to clipboard
fun decode(minDistance: Double, units: String = TurfConstants.UNIT_KILOMETERS): List<Point>

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
open fun forEachRemaining(p0: Consumer<in Point>)
Link copied to clipboard
open operator override fun hasNext(): Boolean

Returns true if the geometry has more points.

Link copied to clipboard
open operator override fun next(): Point

Returns the next point in the geometry.

Link copied to clipboard
fun skip(count: Int)

Skip the next count points of the geometry. Less points are skipped if there are less than count points left in the iterator.

Properties

Link copied to clipboard
val current: Point? = null

Returns the current Point for the iterator. Every call to next will update the current.

Link copied to clipboard
val encodedPath: String