Skip to main content

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​

Double

Longitude​

Longitude in degrees.

public double Longitude { get; init; }

Property Value​

Double

Accuracy​

Horizontal accuracy in metres.

public double Accuracy { get; init; }

Property Value​

Double

Altitude​

Altitude in metres, or null if unavailable.

public double? Altitude { get; init; }

Property Value​

Double?

TimestampUnixMs​

Fix time as Unix epoch milliseconds.

public long TimestampUnixMs { get; init; }

Property Value​

Int64

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.