| | | 1 | | using Itinero.Network; |
| | | 2 | | using Itinero.Profiles; |
| | | 3 | | |
| | | 4 | | namespace Itinero.Routing.Flavours.Dijkstra; |
| | | 5 | | |
| | | 6 | | internal static class IsMainNFuncExtensions |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Binds <see cref="RoutingNetworkIslandManager.IsMainN"/> to the given profile, producing |
| | | 10 | | /// a closure the edge-based Dijkstra can call without knowing about the manager. |
| | | 11 | | /// </summary> |
| | | 12 | | public static IsMainNFunc GetIsMainNFunc(this RoutingNetwork network, Profile profile) |
| | 11611 | 13 | | { |
| | 11611 | 14 | | var manager = network.IslandManager; |
| | 799981 | 15 | | return (edgeId, isLocalAccess) => manager.IsMainN(profile, edgeId, isLocalAccess); |
| | 11611 | 16 | | } |
| | | 17 | | } |