Interface IRoutesResolver
- Namespace
- XENBIT.ResQueServe.Abstractions.Interfaces
- Assembly
- RQS.Abstractions.dll
Defines methods for resolving geographic routes between two locations.
[TypeScriptUnavailable]
public interface IRoutesResolver : IPrioritizedService
- Inherited Members
Properties
IsUsingCachedData
If the implementation uses cached data, this property will be true.
bool IsUsingCachedData { get; }
Property Value
Methods
GetAirwayRouteAsync(Coordinates, Coordinates, bool, bool, bool)
Asynchronously retrieves a route between the specified start and end locations.
Task<IRoute?> GetAirwayRouteAsync(Coordinates from, Coordinates to, bool isFallback = false, bool withObservationPath = false, bool isLandingAtStation = false)
Parameters
fromCoordinatesThe starting location for the route.
toCoordinatesThe destination location for the route.
isFallbackboolIndicates whether the route is requested as fallback. Default is false.
withObservationPathboolIndicates whether the route should include an observation path when traveling by helicopter. Default is false.
isLandingAtStationboolIndicates whether the aircraft will arrive at the station. Default is false.
Returns
- Task<IRoute>
A task representing the asynchronous operation, with a result of a IRoute representing the calculated route.
GetRouteAsync(Coordinates, Coordinates)
Asynchronously retrieves a route between the specified start and end locations.
Task<IDirectionsResult?> GetRouteAsync(Coordinates from, Coordinates to)
Parameters
fromCoordinatesThe starting location for the route.
toCoordinatesThe destination location for the route.
Returns
- Task<IDirectionsResult>
A task representing the asynchronous operation, with a result of a IRoute representing the calculated route.