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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.2.1 - 200.5 |
Xamarin.Android | 100.2.1 - 100.15 |
Xamarin.iOS | 100.2.1 - 100.15 |
UWP | 100.2.1 - 200.5 |