RoutePoints

fun RoutePoints(nestedList: List<List<List<Point>>>, flatList: List<Point>)

Parameters

nestedList

nested arrays of legs -> steps -> points

flatList

list of all points on the route. The first and last point of adjacent steps overlap and are duplicated in this list.