Show / Hide Table of Contents

Class ResolveVertexAlgorithm

An algorithm to search for a good location on a routing network to start routing for a given location. This algorithm only returns vertices.

Inheritance
System.Object
AlgorithmBase
ResolveVertexAlgorithm
Inherited Members
AlgorithmBase.HasRun
AlgorithmBase.HasSucceeded
AlgorithmBase.ErrorMessage
AlgorithmBase.CheckHasRun()
AlgorithmBase.CheckHasRunAndHasSucceeded()
AlgorithmBase.Run()
AlgorithmBase.Run(CancellationToken)
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class ResolveVertexAlgorithm : AlgorithmBase, IResolver, IAlgorithm

Constructors

ResolveVertexAlgorithm(GeometricGraph, Single, Single, Single, Single, Func<GeometricEdge, Boolean>)

Creates a new resolve algorithm.

Declaration
public ResolveVertexAlgorithm(GeometricGraph graph, float latitude, float longitude, float maxOffsetInMeter, float maxDistance, Func<GeometricEdge, bool> isAcceptable)
Parameters
GeometricGraph graph

System.Single latitude

System.Single longitude

System.Single maxOffsetInMeter

System.Single maxDistance

Func<GeometricEdge, System.Boolean> isAcceptable

Fields

BetterEdgeFactor

Factor to compare better edge distance to acceptable edge distance and decide which edge to take.

Declaration
public static float BetterEdgeFactor
Field Value
System.Single

BetterEdgeThreshold

Threshold below which to always accept the better edges.

Declaration
public static int BetterEdgeThreshold
Field Value
System.Int32

Properties

Result

Gets the resulting router point.

Declaration
public RouterPoint Result { get; }
Property Value
RouterPoint

Implements
IResolver.Result

Methods

DoRun(CancellationToken)

Executes the actual algorithm.

Declaration
protected override void DoRun(CancellationToken cancellationToken)
Parameters
CancellationToken cancellationToken

Overrides
AlgorithmBase.DoRun(CancellationToken)
Back to top Built by Itinero, MIT licensed.