surfaceSections property
Surface type sections for the route.
Each section contains the start distance and the surface SurfaceType.
Returns
- A list of SurfaceSection.
Implementation
List<SurfaceSection> get surfaceSections {
final OperationResult resultString = objectMethod(
pointerId,
'RouteTerrainProfile',
'getSurfaceSections',
);
final List<dynamic> listJson = resultString['result'];
final List<SurfaceSection> retList = listJson
.map(
(final dynamic categoryJson) => SurfaceSection.fromJson(categoryJson),
)
.toList();
return retList;
}