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
Properties
Latitude
public double Latitude { get; init; }
Property Value
Longitude
public double Longitude { get; init; }
Property Value
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
Returns
- RoutingCoordinate
A coordinate in longitude/latitude order.