About GPS ToolKit.NET Mobile
Introduction
Purchasing GPS ToolKit.NET
Redistributing GPS ToolKit.NET
License Agreement
Support
Getting Started
Getting Started
Setting up the GPS
Basic Concepts
GPS ToolKit Sample Projects
About GPS ToolKit Errors
Reference
GPSToolKit Class
Properties
BaudRate
ExtendedFixData
IsGPSConnected
IsPortOpen
LastPositionUpdateTime
NavigationData
PortName
Protocol
Position
Satellites
Speed
TrueCourse
Methods
AddRoute
AddTrack
AddWaypoint
AutoDetectGPS
Close
GetAvailableSystemPorts
GetGPSInfo
GetRoutes
GetSystemPorts
GetTracks
GetWaypoints
Open
ShutOffGPS
WriteRawBinaryToGPS
WriteRawToGPS
Events
GPSConnected
GPSDisconnected
NavigationUpdate
PositionUpdate
RawDataReceived
SatelliteUpdate
Supporting Classes
Altitude
Angle
Distance
ExtendedFixData
Properties
DGPSRefStationID
EstimatedHorizontalError
EstimatedPositionError
EstimatedVerticalError
FixMode
GeoidHeightAboveWGS84
HDOP
MagneticVariation
NumSatellitesInView
PDOP
TimeSinceLastDGPSUpdate
VDOP
GPSInfo
Latitude
Methods
ToDecimalDegreesString
ToDegreesMinutesString
ToDegreesMinutesSecondsString
Longitude
Methods
ToDecimalDegreesString
ToDegreesMinutesString
ToDegreesMinutesSecondsString
NavData
Properties
ActiveRoute
ArrivedAtDest
CrossTrackError
DestWptName
DestWptPosition
IsValid
MagBearingFromOriginToDest
OriginWptName
TrueBearingFromOriginToDest
TrueBearingToDestWpt
VelocityTowardDestWpt
Position
Methods
BearingFrom
BearingTo
DistanceTo
Route
Properties
Name
Waypoints
Satellite
Speed
Track
Properties
Color
DisplayTrack
Name
TrackPoints
TrackPoint
Waypoint
Collections
RouteCollection
SatelliteCollection
TrackCollection
TrackPointCollection
WaypointCollection

Position Class

Represents a position consisting of a latitude, longitude, and altitude.

Syntax

[Visual Basic]
Dim instance As Position

[C#]
Position instance

[C++]
Position* instance

[Visual Basic]
Dim instance As New Position(LatitudeInDecimalDegrees, LongitudeInDecimalDegrees)

[C#]
Position instance = new Position(LatitudeInDecimalDegrees, LongitudeInDecimalDegrees)

[C++]
Position* instance = new Position(LatitudeInDecimalDegrees, LongitudeInDecimalDegrees)

[Visual Basic]
Dim instance As New Position(LatitudeInDecimalDegrees, LongitudeInDecimalDegrees, Altitude)

[C#]
Position instance = new Position(LatitudeInDecimalDegrees, LongitudeInDecimalDegrees, Altitude)

[C++]
Position* instance = new Position(LatitudeInDecimalDegrees, LongitudeInDecimalDegrees, Altitude)

Parameters

LatitudeInDecimalDegrees

A double representing the latitude in decimal degrees.

LongitudeInDecimalDegrees

A double representing the longitude in decimal degrees.

Altitude

A double representing the altitude in meters.

Remarks

  • Position represents a position in space and provides methods to calculate distance and bearing to and from another position.
  • The IsValid property of the Position object is false until a valid latitude and longitude has been assigned to the object. It is not necessary to assign an altitude to the position for it to be valid.

Instance Hierarchy

SciCom
   SciCom.GPSToolKit
     SciCom.GPSToolKit.Position

Thread Safety

Position is thread safe for use by multiple threads.

Properties

Property Description
Altitude property An Altitude object containing the altitude of this position.
IsValid property True if the position is valid, false if it is invalid or unavailable
Latitude property A Latitude object containing the latitude of the position, if available.
Longitude property A Longitude object containing the position, if available.

Methods

Method Description
BearingFrom method Returns the bearing from a given position.
BearingTo method Returns the bearing to a given position.
DistanceTo method Returns the distance to a given position

See Also

Longitude class | Latitude class | Altitude class | PositionUpdate event