terrainProfile property
inherited
Get route terrain profile.
The BuildTerrainProfile.enable parameter must be set to true in the RoutePreferences.buildTerrainProfile object passed to RoutingService.calculateRoute for this getter to work.
Returns
- Terrain profile of the route, detailing elevation changes.
Throws
- An exception if it fails.
Implementation
RouteTerrainProfile? get terrainProfile {
final OperationResult resultString = objectMethod(
_pointerId,
'RouteBase',
'getTerrainProfile',
);
final int mId = resultString['result'];
if (mId == 0) {
return null;
}
return RouteTerrainProfile.init(mId, _mapId);
}