Show / Hide Table of Contents

Property ToLevel

ToLevel

Gets the logical level at the end of the maneuver.

Declaration
public int ToLevel { get; }
Property Value
Type Description
System.Int32

The logical level at the end of the maneuver.

Remarks

For maneuvers that go up or down levels, such as going from floor 1 to floor 2 in a building's stairwell, the ToLevel value signifies the ending level of the maneuver. For example, to go from floor 1 to floor 2, the FromLevel would be 1 and the ToLevel would be 2. If these values are in the source data, the directions engine can give a descriptive instruction for the maneuver, such as "go up the stairs." If the values are not provided, a -1 value is used, signifying that no levels are defined for maneuvers.

The FromLevel and ToLevel properties are defined to provide a way to filter directions based on logical level division. For example, a 3D routing application might render a 2D map with route lines filtered by vertical level instead of displaying overlapping lines on different levels.

The FromLevel and ToLevel properties are populated from source data and not calculated by the directions engine. If the source data does not contain LevelFrom and LevelTo fields, the properties will be populated with -1 values

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.2.1 - 200.7
Xamarin.Android100.2.1 - 100.15
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 200.7
In This Article
Back to top Copyright © 2022 Esri.