decodeStepPoints

fun decodeStepPoints(directionsRoute: DirectionsRoute, currentPoints: List<Point>, legIndex: Int, stepIndex: Int): List<Point>

Given the current DirectionsRoute and leg / step index, return a list of Point representing the current step.

This method is only used on a per-step basis as PolylineUtils.decode can be a heavy operation based on the length of the step.

Returns null if index is invalid.

Return

list of Point representing the current step

Parameters

directionsRoute

for list of steps

legIndex

to get current step list

stepIndex

to get current step