GeoLocation Structure

Structure representing a point on the map. This can, for example, be a device Fix emitted by a DeviceDto to the receiver, or a static point where the user decides an object is (like an EnvironmentDto).

Definition

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

Remarks

The geolocation code and naming conventions must adhere to the .

This struct is immutable and designed to be as lightweight as possible, so it can be used in high-performance scenarios where thousands or millions of locations are being processed at once.

Constructors

GeoLocation Public constructor

Methods

Equals(GeoLocation)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)
ToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)

Operators

Fields

Altitude Altitude value in meters.
Empty Represents an empty GeoLocation object.
Latitude Latitude value in degrees.
Longitude Longitude value in degrees

Extension Methods

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

See Also