decode Step Points
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
directions Route
for list of steps
leg Index
to get current step list
step Index
to get current step