| | 1 | | using System.Collections.Generic; |
| | 2 | | using Itinero.Network; |
| | 3 | | using Itinero.Routing.Alternatives; |
| | 4 | | using Itinero.Snapping; |
| | 5 | |
|
| | 6 | | namespace Itinero.Routing; |
| | 7 | |
|
| | 8 | | internal class Router : IRouter, IRouterOneToOne, IRouterManyToMany, IRouterManyToOne, IRouterOneToMany, IRouterOneToOne |
| | 9 | | { |
| 21 | 10 | | internal Router(RoutingNetwork network, RoutingSettings settings) |
| 21 | 11 | | { |
| 21 | 12 | | this.Network = network; |
| 21 | 13 | | this.Settings = settings; |
| 21 | 14 | | } |
| | 15 | |
|
| 28 | 16 | | public RoutingNetwork Network { get; } |
| 35 | 17 | | public RoutingSettings Settings { get; } |
| 28 | 18 | | public (SnapPoint sp, bool? direction) Source { get; internal set; } |
| 14 | 19 | | public (SnapPoint sp, bool? direction) Target { get; internal set; } |
| 21 | 20 | | public IReadOnlyList<(SnapPoint sp, bool? direction)> Sources { get; internal set; } = null!; |
| 21 | 21 | | public IReadOnlyList<(SnapPoint sp, bool? direction)> Targets { get; internal set; } = null!; |
| | 22 | |
|
| 21 | 23 | | public AlternativeRouteSettings AlternativeRouteSettings { get; internal set; } = null!; |
| | 24 | | } |