surfaceSections property

List<SurfaceSection> get surfaceSections

Surface type sections for the route.

Each section contains the start distance and the surface SurfaceType.

Returns

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;
}