Edit

Share via


RoutePoint Constructor

Definition

Creates a new route point.

public RoutePoint (string routeName, int indexInRoute, int totalPointsInRoute, string waypointName, Iot.Device.Common.GeographicPosition position, UnitsNet.Angle? bearingToNextWaypoint, UnitsNet.Length? distanceToNextWaypoint);
new Iot.Device.Nmea0183.RoutePoint : string * int * int * string * Iot.Device.Common.GeographicPosition * Nullable<UnitsNet.Angle> * Nullable<UnitsNet.Length> -> Iot.Device.Nmea0183.RoutePoint
Public Sub New (routeName As String, indexInRoute As Integer, totalPointsInRoute As Integer, waypointName As String, position As GeographicPosition, bearingToNextWaypoint As Nullable(Of Angle), distanceToNextWaypoint As Nullable(Of Length))

Parameters

routeName
String

Name of the route

indexInRoute
Int32

The index of this point

totalPointsInRoute
Int32

The total number of points on this route

waypointName
String

The name of this waypoint

position
GeographicPosition

The position of the waypoint

bearingToNextWaypoint
Nullable<UnitsNet.Angle>

The direction to the next waypoint (optional, will be calculated when the route is constructed)

distanceToNextWaypoint
Nullable<UnitsNet.Length>

The distance to the next waypoint (optional, will be calculated when the route is constructed)

Remarks

Route and point names should use ASCII characters only. Some devices may understand the extended ASCII code page (values > 127), but this is rare. Most devices will silently truncate any names longer than 10 chars.

Applies to