-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from itinero/features/islands
Island detection support.
- Loading branch information
Showing
41 changed files
with
2,214 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using Itinero.Network.Mutation; | ||
using Itinero.Network.Search.Islands; | ||
using Itinero.Network.Writer; | ||
|
||
namespace Itinero.Network; | ||
|
||
public sealed partial class RoutingNetwork | ||
{ | ||
internal readonly RoutingNetworkIslandManager IslandManager; | ||
|
||
RoutingNetworkIslandManager IRoutingNetworkWritable.IslandManager | ||
{ | ||
get | ||
{ | ||
return IslandManager; | ||
} | ||
} | ||
|
||
RoutingNetworkIslandManager IRoutingNetworkMutable.IslandManager | ||
{ | ||
get | ||
{ | ||
return IslandManager; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Itinero.Network.Enumerators.Edges; | ||
|
||
namespace Itinero.Network.Search.Edges; | ||
|
||
/// <summary> | ||
/// Abstract definition of an edge checker. | ||
/// </summary> | ||
public interface IEdgeChecker | ||
{ | ||
/// <summary> | ||
/// A fast-path check that returns a boolean if the status of the edge is known, otherwise returns null and an advanced check needs to be done. | ||
/// </summary> | ||
/// <param name="edgeEnumerator"></param> | ||
/// <returns></returns> | ||
bool? IsAcceptable(IEdgeEnumerator<RoutingNetwork> edgeEnumerator); | ||
|
||
/// <summary> | ||
/// Runs the checks for the given edge. | ||
/// </summary> | ||
/// <param name="edgeEnumerator"></param> | ||
/// <param name="cancellationToken"></param> | ||
/// <returns></returns> | ||
Task<bool> RunCheckAsync(IEdgeEnumerator<RoutingNetwork> edgeEnumerator, CancellationToken cancellationToken = default); | ||
} |
Oops, something went wrong.