Docs · API reference · Motus.Abstractions
Geolocation Class#
Represents a geographic location.
public sealed record Geolocation : System.IEquatable<Motus.Abstractions.Geolocation>
Inheritance System.Object → Geolocation
Implements System.IEquatable<Geolocation>
Constructors#
Geolocation(double, double, Nullable<double>) Constructor#
Represents a geographic location.
public Geolocation(double Latitude, double Longitude, System.Nullable<double> Accuracy=null);
Parameters#
Latitude System.Double
The latitude in decimal degrees.
Longitude System.Double
The longitude in decimal degrees.
Accuracy System.Nullable<System.Double>
The accuracy of the location in meters.
Properties#
Accuracy Property#
The accuracy of the location in meters.
public System.Nullable<double> Accuracy { get; init; }
Property Value#
System.Nullable<System.Double>
Latitude Property#
The latitude in decimal degrees.
public double Latitude { get; init; }
Property Value#
Longitude Property#
The longitude in decimal degrees.
public double Longitude { get; init; }