Table of Contents

Struct RoutingCoordinate

Namespace
Honua.Sdk.Abstractions.Routing
Assembly
Honua.Sdk.Abstractions.dll

WGS84 coordinate used by routing operations. Longitude maps to X and latitude maps to Y.

public readonly record struct RoutingCoordinate : IEquatable<RoutingCoordinate>
Implements
Inherited Members

Constructors

RoutingCoordinate(double, double)

WGS84 coordinate used by routing operations. Longitude maps to X and latitude maps to Y.

public RoutingCoordinate(double Longitude, double Latitude)

Parameters

Longitude double
Latitude double

Properties

Latitude

public double Latitude { get; init; }

Property Value

double

Longitude

public double Longitude { get; init; }

Property Value

double

Methods

FromLatitudeLongitude(double, double)

Creates a coordinate from latitude/longitude ordered values, which is common for GPS APIs.

public static RoutingCoordinate FromLatitudeLongitude(double latitude, double longitude)

Parameters

latitude double

Latitude in decimal degrees.

longitude double

Longitude in decimal degrees.

Returns

RoutingCoordinate

A coordinate in longitude/latitude order.