stepsGeometryToLineString

fun DirectionsRoute.stepsGeometryToLineString(): List<List<LineString>>

Decodes geometries of all LegSteps in a DirectionsRoute to LineStrings and caches the results. No decoding is performed for LegSteps, that already have a cached result available.

Return

decoded LineStrings. The resulting collection is a nested list of:

[ legs
[ steps
{ step's geometry decoded to a line string }
]
]