Position class contains all the position and current status related data.
Inheritance Hierarchy
ZylSoft.Gps.MobilePosition
Namespace: ZylSoft.Gps.Mobile
Assembly: ZylGpsReceiverMobile (in ZylGpsReceiverMobile.dll) Version: 3.14.6846.29005
Syntax
The Position type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Position |
Constructor.
|
Properties
| Name | Description | |
|---|---|---|
| Altitude |
Altitude in meters.
| |
| Course |
True course in decimal degrees.
| |
| Day |
Current day of the month.
| |
| Fix |
Returns fix related data:
-1 - No Info
0 - Invalid
1 - Valid SPS
2 - Valid DGPS
3 - Valid PPS
| |
| GeoHeight |
Difference between WGS-84 reference ellipsoid surface and the mean-sea-level altitude in meters (geoidal separation).
| |
| Hdop |
Horizontal dilution of precision.
| |
| Heading |
True heading in decimal degrees.
| |
| Hour |
Current hour.
| |
| LatitudeAsDecimalDegrees |
Latitude in decimal degrees.
| |
| LatitudeDegree |
Degree component of latitude.
| |
| LatitudeDirection |
Direction component of latitude. (North (+) or South (-))
| |
| LatitudeMinute |
Minute component of latitude.
| |
| LatitudeSecond |
Second component of latitude.
| |
| LongitudeAsDecimalDegrees |
Longitude in decimal degrees.
| |
| LongitudeDegree |
Degree component of longitude.
| |
| LongitudeDirection |
Direction component of longitude (East or West).
| |
| LongitudeMinute |
Minute component of longitude.
| |
| LongitudeSecond |
Second component of longitude.
| |
| MagneticCourse |
Magnetic course.
| |
| MagneticDeviation |
Magnetic deviation in degrees.
| |
| MagneticDeviationDirection |
Direction of magnetic deviation (East or West).
| |
| MagneticHeading |
Magnetic heading.
| |
| MagneticVariation |
Magnetic variation (declination) in degrees.
| |
| MagneticVariationDirection |
Direction of magnetic variation (East or West).
| |
| Millisecond |
Current millisecond.
| |
| Minute |
Current minute (time).
| |
| Mode1 |
Returns the operating mode:
1 - Auto 2D/3D
2 - Forced 2D/3D
| |
| Mode2 |
Returns the operating mode:
1 - If no fix
2 - If the position is a 2D GPS fix
3 - If the position is a 3D GPS fix
| |
| Month |
Current month of the year.
| |
| Pdop |
Position dilution of precision.
| |
| SatelliteCount |
Count of the satellites used to determine the fix position.
If you need the count of all satellites in view, use Satellites.Count instead of Satellite_Count.
| |
| Satellites |
List of satellites in view (List of Satellite objects).
| |
| Second |
Current second (time).
| |
| SpeedAsKmh |
Speed in km/h.
| |
| SpeedAsKnots |
Speed in knots.
| |
| Vdop |
Vertical dilution of precision.
| |
| Year |
Current year.
|
Methods
| Name | Description | |
|---|---|---|
| Bearing(Double, Double, Double, Double) |
Returns bearing in decimal degrees between two points.
| |
| Bearing(Int32, Int32, Double, CardinalPoint, Int32, Int32, Double, CardinalPoint, Int32, Int32, Double, CardinalPoint, Int32, Int32, Double, CardinalPoint) |
Returns bearing in decimal degrees between two points.
| |
| BearingTo(Double, Double) |
Returns bearing in decimal degrees between one point and the current position.
| |
| BearingTo(Int32, Int32, Double, CardinalPoint, Int32, Int32, Double, CardinalPoint) |
Returns bearing in decimal degrees between one point and the current position.
| |
| Clone |
Creates a shallow copy of the current object.
| |
| CompareTo |
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes,
follows, or occurs in the same position in the sort order as the other object.
| |
| DecimalDegreesToRadians |
Converts decimal degrees to radians.
| |
| DistanceAsKm(Double, Double, Double, Double) |
Returns the distance between two points in kilometers.
| |
| DistanceAsKm(Int32, Int32, Double, CardinalPoint, Int32, Int32, Double, CardinalPoint, Int32, Int32, Double, CardinalPoint, Int32, Int32, Double, CardinalPoint) |
Returns the distance between two points in kilometers.
| |
| DistanceAsMiles(Double, Double, Double, Double) |
Returns the distance between two points in miles.
| |
| DistanceAsMiles(Int32, Int32, Double, CardinalPoint, Int32, Int32, Double, CardinalPoint, Int32, Int32, Double, CardinalPoint, Int32, Int32, Double, CardinalPoint) |
Returns the distance between two points in miles.
| |
| DistanceToAsKm(Double, Double) |
Returns the distance between one point and the current position in kilometers.
| |
| DistanceToAsKm(Int32, Int32, Double, CardinalPoint, Int32, Int32, Double, CardinalPoint) |
Returns the distance between one point and the current position in kilometers.
| |
| DistanceToAsMiles(Double, Double) |
Returns the distance between one point and the current position in miles.
| |
| DistanceToAsMiles(Int32, Int32, Double, CardinalPoint, Int32, Int32, Double, CardinalPoint) |
Returns the distance between one point and the current position in miles.
| |
| DmsToDecimalDegrees |
Converts DMS (degree/minute/Second) to decimal degrees.
| |
| DmsToDm(Int32, Int32, Double, CardinalPoint) |
Converts DMS (DegreeMinuteSecond) to DM (DegreeMinute, concatenated: DDMM.mmmm).
| |
| DmsToDm(Int32, Int32, Double, Int32, Double) |
Converts DMS (DegreeMinuteSecond) to DM (DegreeMinute).
| |
| DmsToRadians |
Converts DMS (degree/minute/Second) to radians.
| |
| DmToDms(Double, Int32, Int32, Double) |
Converts DM (DegreeMinute) to DMS (DegreeMinuteSecond).
| |
| DmToDms(Int32, Double, Int32, Int32, Double) |
Converts DM (DegreeMinute) to DMS (DegreeMinuteSecond).
| |
| Equals |
Returns a value indicating whether this instance and a specified Position object represent the same value.
(Overrides ObjectEquals(Object).) | |
| FeetToMeters |
Converts feet to meters.
| |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode |
Serves as the default hash function.
(Overrides ObjectGetHashCode.) | |
| GetLatitudeAsDecimalDegrees |
Returns current latitude in decimal degrees.
| |
| GetLatitudeAsDm |
Returns latitude in DM (DecimalMinute, concatenated: DDMM.mmmm) format.
| |
| GetLatitudeAsRadians |
Returns current latitude in radians.
| |
| GetLocalDateTime |
Returns current local datetime.
| |
| GetLongitudeAsDecimalDegrees |
Returns current longitude in decimal degrees.
| |
| GetLongitudeAsDm |
Returns longitude in DM (DecimalMinute, concatenated: DDMM.mmmm) format.
| |
| GetLongitudeAsRadians |
Returns current longitude in radians.
| |
| GetType | Gets the type of the current instance. (Inherited from Object.) | |
| GetUtcDateTime |
Returns current UTC datetime.
| |
| IsFix |
Returns true, if position is a fix.
| |
| KmhToKnots |
Converts km/h to knots.
| |
| KmToMiles |
Converts kilometers to miles.
| |
| KmToNauticalMiles |
Converts kilometers to nautical miles.
| |
| KnotsToKmh |
Converts knots to km/h.
| |
| LatitudeDecimalDegreesToDms |
Converts decimal degrees to DMS for latitude values.
| |
| LatitudeRadiansToDms |
Converts radians to DMS for latitude values.
| |
| LongitudeDecimalDegreesToDms |
Converts decimal degrees to DMS for longitude values.
| |
| LongitudeRadiansToDms |
Converts radians to DMS for longitude values.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| MetersToFeet |
Converts meters to feet.
| |
| MilesToKm |
Converts miles to kilometers.
| |
| NauticalMilesToKm |
Converts nautical miles to kilometers.
| |
| RadiansToDecimalDegrees |
Converts radians to decimal degrees.
| |
| Reset |
Resets the position.
| |
| SetDate |
Sets the date of the position.
| |
| SetDateTime |
Sets the date-time of the position.
| |
| SetPositionInDecimalDegrees |
Sets the position from decimal degrees.
| |
| SetPositionInDm |
Sets the position from DM format (DegreeMinute DDMM.mmmm).
| |
| SetTime |
Sets the time of the position.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
Operators
| Name | Description | |
|---|---|---|
| Equality |
== operator
| |
| Inequality |
!= operator
|
Fields
| Name | Description | |
|---|---|---|
| RadiusEarth |
Size of the Earth's radius in kilometers.
|
See Also