Table of Contents

Class RoutingLocation

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

Point input for route stops, facilities, incidents, barriers, and service-area centers.

public sealed class RoutingLocation
Inheritance
RoutingLocation
Inherited Members

Properties

Attributes

Additional provider-neutral attributes included with the network-analysis feature.

public IReadOnlyDictionary<string, JsonElement>? Attributes { get; init; }

Property Value

IReadOnlyDictionary<string, JsonElement>

Coordinate

WGS84 point coordinate.

public required RoutingCoordinate Coordinate { get; init; }

Property Value

RoutingCoordinate

Id

Optional stable caller identifier.

public string? Id { get; init; }

Property Value

string

Name

Optional display name sent as the route stop/facility name.

public string? Name { get; init; }

Property Value

string

TimeWindow

Optional arrival window for stops when the provider supports time-window routing.

public RouteTimeWindow? TimeWindow { get; init; }

Property Value

RouteTimeWindow

Methods

FromLatitudeLongitude(double, double, string?)

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

public static RoutingLocation FromLatitudeLongitude(double latitude, double longitude, string? name = null)

Parameters

latitude double

Latitude in decimal degrees.

longitude double

Longitude in decimal degrees.

name string

Optional stop name.

Returns

RoutingLocation

A routing location.

FromLongitudeLatitude(double, double, string?)

Creates a location from longitude/latitude ordered values.

public static RoutingLocation FromLongitudeLatitude(double longitude, double latitude, string? name = null)

Parameters

longitude double

Longitude in decimal degrees.

latitude double

Latitude in decimal degrees.

name string

Optional stop name.

Returns

RoutingLocation

A routing location.