Show / Hide Table of Contents

Interface IResolverCache

Abstract representation of a resolver cache.

Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public interface IResolverCache

Methods

Add(IProfileInstance[], Single, Single, Func<RoutingEdge, Boolean>, Single, ResolveSettings, Result<RouterPoint>)

Adds to this cache, the closest point on the routing network that's routable for the given profiles.

Declaration
void Add(IProfileInstance[] profileInstances, float latitude, float longitude, Func<RoutingEdge, bool> isBetter, float maxSearchDistance, ResolveSettings settings, Result<RouterPoint> routerPointResult)
Parameters
IProfileInstance[] profileInstances

The profile instances.

System.Single latitude

The latitude.

System.Single longitude

The longitude.

Func<RoutingEdge, System.Boolean> isBetter

The is better function.

System.Single maxSearchDistance

The maximum search distance.

ResolveSettings settings

The settings, if any.

Result<RouterPoint> routerPointResult

The result to keep.

TryGet(IProfileInstance[], Single, Single, Func<RoutingEdge, Boolean>, Single, ResolveSettings)

Tries to get from this cache, the closest point on the routing network that's routable for the given profiles.

Declaration
Result<RouterPoint> TryGet(IProfileInstance[] profileInstances, float latitude, float longitude, Func<RoutingEdge, bool> isBetter, float maxSearchDistance, ResolveSettings settings)
Parameters
IProfileInstance[] profileInstances

The profile instances.

System.Single latitude

The latitude.

System.Single longitude

The longitude.

Func<RoutingEdge, System.Boolean> isBetter

The is better function.

System.Single maxSearchDistance

The maximum search distance.

ResolveSettings settings

The settings, if any.

Returns
Result<RouterPoint>

The resulting router point in cache.

Back to top Built by Itinero, MIT licensed.