GeolocationPosition
Namespace: BlazorNative.Core
A single position fix. Crosses the ABI as a flat JSON object of string→string (numbers string-encoded, reusing the fetch-headers serializer); .NET parses it into this typed form.
public readonly record struct GeolocationPosition
Inheritance Object → ValueType → GeolocationPosition
Implements IEquatable<GeolocationPosition>
Attributes IsReadOnlyAttribute
Properties
Latitude
Latitude in degrees.
public double Latitude { get; init; }
Property Value
Longitude
Longitude in degrees.
public double Longitude { get; init; }
Property Value
Accuracy
Horizontal accuracy in metres.
public double Accuracy { get; init; }
Property Value
Altitude
Altitude in metres, or null if unavailable.
public double? Altitude { get; init; }
Property Value
TimestampUnixMs
Fix time as Unix epoch milliseconds.
public long TimestampUnixMs { get; init; }
Property Value
Constructors
GeolocationPosition(Double, Double, Double, Double?, Int64)
A single position fix. Crosses the ABI as a flat JSON object of string→string (numbers string-encoded, reusing the fetch-headers serializer); .NET parses it into this typed form.
public GeolocationPosition(double Latitude, double Longitude, double Accuracy, double? Altitude, long TimestampUnixMs)
Parameters
Latitude Double
Latitude in degrees.
Longitude Double
Longitude in degrees.
Accuracy Double
Horizontal accuracy in metres.
Altitude Double?
Altitude in metres, or null if unavailable.
TimestampUnixMs Int64
Fix time as Unix epoch milliseconds.