Route Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
High-level representation of a route (a list of waypoints)
public sealed class Route
type Route = class
Public NotInheritable Class Route
- Inheritance
-
Route
Constructors
Route(String) |
Starts with an empty route |
Route(String, GeographicPosition[]) |
Creates a route from an ordered set of points |
Route(String, List<RoutePoint>, RoutePoint) |
Construct a route from a list of points. This gets precedence over an externally defined route. |
Properties
HasPoints |
True if the route is not empty |
Name |
Name of the route |
NextPoint |
The next point on the route |
Points |
The points on the route |
StartPoint |
Gets the first point of the route |
Methods
AddPoint(RoutePoint) |
Adds the given point to the end of the route |
SetNextPoint(GeographicPosition) |
Sets the next point on the route (i.e. to skip a missed waypoint) |
SetNextPoint(RoutePoint) |
Sets the next point on the route (i.e. to skip a missed waypoint) |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for