PositionProvider 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.
Provides high-level methods to obtain position and other aggregated data from NMEA sources. The class takes the best available data sets to generate the required output. A position can for instance be obtained from PositionFastUpdate, GlobalPositioningSystemFixData or RecommendedMinimumNavigationInformation, depending on whatever the GNSS receiver delivers.
public class PositionProvider
type PositionProvider = class
Public Class PositionProvider
- Inheritance
-
PositionProvider
Constructors
PositionProvider(NmeaSinkAndSource) |
Create a position provider from a given data source. The data source is monitored for changes. |
PositionProvider(SentenceCache) |
Create a position provider using an existing cache. The cache must be updated externally. |
Methods
GetSatellitesInView(Int32) |
Returns the list of satellites in view |
TryGetCurrentPosition(GeographicPosition, Angle, Speed, Nullable<Angle>) |
Get the current position from the latest message containing any of the relevant data parts. This does not extrapolate the position if the last received message is old |
TryGetCurrentPosition(GeographicPosition, Boolean, Angle, Speed, Nullable<Angle>) |
Get the current position from the latest message containing any of the relevant data parts.
If |
TryGetCurrentPosition(GeographicPosition, String, Boolean, Angle, Speed, Nullable<Angle>, DateTimeOffset) |
Get the current position from the latest message containing any of the relevant data parts.
If |
TryGetCurrentPosition(GeographicPosition, String, Boolean, Angle, Speed, Nullable<Angle>, DateTimeOffset, DateTimeOffset) |
Get the current position from the latest message containing any of the relevant data parts.
If |
TryGetCurrentRoute(List<RoutePoint>) |
Returns the current route |
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