GeoLocationWithHeading Structure

Structure representing a Gps Fix emitted by a DeviceDto in a message, including where the object appears to be headed and at what speed.

Definition

Namespace: MobileTrack.Common.Models
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
public readonly struct GeoLocationWithHeading : IEquatable<GeoLocationWithHeading>
Inheritance
Object    ValueType    GeoLocationWithHeading
Implements
IEquatableGeoLocationWithHeading

Constructors

GeoLocationWithHeading Public constructor

Methods

Equals(GeoLocationWithHeading)Indicates whether the current object is equal to another object of the same type.
Equals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
GetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
IsEmpty Returns whether the GeoLocation is Empty.
ToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)

Operators

Equality(GeoLocationWithHeading, GeoLocation) Checks for equality
Equality(GeoLocationWithHeading, GeoLocationWithHeading) Checks for equality
(GeoLocation to GeoLocationWithHeading) Implicitly converts a GeoLocationWithHeading to a GeoLocation.
Note: the Heading, Speed and GpsFixDate will be left empty.
This means that if you convert a GeoLocationWithHeading to a GeoLocation (and back),
you will lose the Heading, Speed and GpsFixDate information.
(GeoLocationWithHeading to GeoLocation) Implicitly converts a GeoLocationWithHeading to a GeoLocation
Inequality(GeoLocationWithHeading, GeoLocation) Checks for inequality
Inequality(GeoLocationWithHeading, GeoLocationWithHeading) Checks for inequality

Fields

Altitude Altitude value (can be 0, if no altitude value is being supplied)
GpsFixDate When the Gps Fix took place (optional)
Heading Heading direction
Latitude Latitude value (cannot be 0)
Longitude Longitude value (cannot be 0)
Speed Speed (in meters per hour)

Extension Methods

IsGpsLocationWithHeadingValid Checks whether the GeoLocationWithHeading has been properly filled in.
(Defined by ModelValidatorsExtensions)
ToDecimalDegreesString Converts a GeoLocationWithHeading to a degrees/minutes/seconds string. Altitude is ignored.
(Defined by ModelGenericExtensions)
ToDmsNotationString Converts a GeoLocationWithHeading to a degrees/minutes/seconds string. Altitude is ignored.
(Defined by ModelGenericExtensions)
ToLatLngLiteral Converts a GeoLocationWithHeading to a LatLngLiteral for use in Google Maps
(Defined by MapsExtensions)

See Also