Class RouteFindingLocation
- Namespace
- EncDotNet.S100.Navigation
- Assembly
- EncDotNet.S100.Navigation.dll
Where a finding is: a point, or a span of the route between two distances from departure.
public sealed record RouteFindingLocation : IEquatable<RouteFindingLocation>
- Inheritance
-
RouteFindingLocation
- Implements
- Inherited Members
Constructors
RouteFindingLocation(IReadOnlyList<GeoPosition>, double, double)
Where a finding is: a point, or a span of the route between two distances from departure.
public RouteFindingLocation(IReadOnlyList<GeoPosition> Path, double StartDistanceMeters, double EndDistanceMeters)
Parameters
PathIReadOnlyList<GeoPosition>One position for a point, or the positions along the span in route order.
StartDistanceMetersdoubleDistance from departure to the start of the span (equal to
EndDistanceMetersfor a point).EndDistanceMetersdoubleDistance from departure to the end of the span.
Properties
EndDistanceMeters
Distance from departure to the end of the span.
public double EndDistanceMeters { get; init; }
Property Value
IsPoint
true when the location is a single point.
public bool IsPoint { get; }
Property Value
Path
One position for a point, or the positions along the span in route order.
public IReadOnlyList<GeoPosition> Path { get; init; }
Property Value
StartDistanceMeters
Distance from departure to the start of the span (equal to EndDistanceMeters for a point).
public double StartDistanceMeters { get; init; }
Property Value
Methods
Point(GeoPosition, double)
A point location at distanceMeters from departure.
public static RouteFindingLocation Point(GeoPosition position, double distanceMeters)
Parameters
positionGeoPositionThe point.
distanceMetersdoubleDistance from departure.
Returns
- RouteFindingLocation
The location.