Class RouterExtensions
Contains extension methods for the IRouter.
Inheritance
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public static class RouterExtensions
Methods
Calculate(Router, Profile, GeoAPI.Geometries.Coordinate, GeoAPI.Geometries.Coordinate)
Calculates a route between the two locations.
Declaration
public static Route Calculate(this Router router, Profile profile, GeoAPI.Geometries.Coordinate source, GeoAPI.Geometries.Coordinate target)
Parameters
|
Router
router
|
|
Profile
profile
|
|
GeoAPI.Geometries.Coordinate
source
|
|
GeoAPI.Geometries.Coordinate
target
|
Returns
|
Route
|
Calculate(Router, Profile, GeoAPI.Geometries.Coordinate[])
Calculates a route along the given locations.
Declaration
public static Route Calculate(this Router router, Profile profile, GeoAPI.Geometries.Coordinate[] locations)
Parameters
|
Router
router
|
|
Profile
profile
|
|
GeoAPI.Geometries.Coordinate[]
locations
|
Returns
|
Route
|
Resolve(Router, Profile, GeoAPI.Geometries.Coordinate, Single)
Searches for the closest point on the routing network that's routable for the given profiles.
Declaration
public static RouterPoint Resolve(this Router router, Profile profile, GeoAPI.Geometries.Coordinate coordinate, float searchDistanceInMeter = 50F)
Parameters
|
Router
router
|
|
Profile
profile
|
|
GeoAPI.Geometries.Coordinate
coordinate
|
|
System.Single
searchDistanceInMeter
|
Returns
|
RouterPoint
|
Resolve(Router, Profile, GeoAPI.Geometries.Coordinate[], Single)
Searches for the closest point on the routing network that's routable for the given profiles.
Declaration
public static RouterPoint[] Resolve(this Router router, Profile profile, GeoAPI.Geometries.Coordinate[] coordinates, float searchDistanceInMeter = 50F)
Parameters
|
Router
router
|
|
Profile
profile
|
|
GeoAPI.Geometries.Coordinate[]
coordinates
|
|
System.Single
searchDistanceInMeter
|
Returns
|
RouterPoint[]
|
Resolve(Router, Profile[], GeoAPI.Geometries.Coordinate, Func<RoutingEdge, Boolean>, Single)
Searches for the closest point on the routing network that's routable for the given profiles.
Declaration
public static RouterPoint Resolve(this Router router, Profile[] profiles, GeoAPI.Geometries.Coordinate coordinate, Func<RoutingEdge, bool> isBetter, float searchDistanceInMeter = 50F)
Parameters
|
Router
router
|
|
Profile[]
profiles
|
|
GeoAPI.Geometries.Coordinate
coordinate
|
|
Func<RoutingEdge, System.Boolean>
isBetter
|
|
System.Single
searchDistanceInMeter
|
Returns
|
RouterPoint
|
Resolve(Router, Profile[], GeoAPI.Geometries.Coordinate, Single)
Searches for the closest point on the routing network that's routable for the given profiles.
Declaration
public static RouterPoint Resolve(this Router router, Profile[] profiles, GeoAPI.Geometries.Coordinate coordinate, float searchDistanceInMeter = 50F)
Parameters
|
Router
router
|
|
Profile[]
profiles
|
|
GeoAPI.Geometries.Coordinate
coordinate
|
|
System.Single
searchDistanceInMeter
|
Returns
|
RouterPoint
|
TryCalculate(Router, Profile, GeoAPI.Geometries.Coordinate, GeoAPI.Geometries.Coordinate)
Calculates a route between the two locations.
Declaration
public static Result<Route> TryCalculate(this Router router, Profile profile, GeoAPI.Geometries.Coordinate source, GeoAPI.Geometries.Coordinate target)
Parameters
|
Router
router
|
|
Profile
profile
|
|
GeoAPI.Geometries.Coordinate
source
|
|
GeoAPI.Geometries.Coordinate
target
|
Returns
|
Result<Route>
|
TryCalculate(Router, Profile, GeoAPI.Geometries.Coordinate[])
Calculates a route along the given locations.
Declaration
public static Result<Route> TryCalculate(this Router router, Profile profile, GeoAPI.Geometries.Coordinate[] locations)
Parameters
|
Router
router
|
|
Profile
profile
|
|
GeoAPI.Geometries.Coordinate[]
locations
|
Returns
|
Result<Route>
|
TryCalculateWeight<T>(Router, Profile, WeightHandler<T>, GeoAPI.Geometries.Coordinate, GeoAPI.Geometries.Coordinate)
Calculates the weight between the two locations.
Declaration
public static Result<T> TryCalculateWeight<T>(this Router router, Profile profile, WeightHandler<T> weightHandler, GeoAPI.Geometries.Coordinate source, GeoAPI.Geometries.Coordinate target)where T : struct
Parameters
|
Router
router
|
|
Profile
profile
|
|
WeightHandler<T>
weightHandler
|
|
GeoAPI.Geometries.Coordinate
source
|
|
GeoAPI.Geometries.Coordinate
target
|
Returns
|
Result<T>
|
Type Parameters
|
T
|
TryCalculateWeight<T>(Router, Profile, WeightHandler<T>, GeoAPI.Geometries.Coordinate[])
Calculates all weights between all given locations.
Declaration
public static Result<T[][]> TryCalculateWeight<T>(this Router router, Profile profile, WeightHandler<T> weightHandler, GeoAPI.Geometries.Coordinate[] locations)where T : struct
Parameters
|
Router
router
|
|
Profile
profile
|
|
WeightHandler<T>
weightHandler
|
|
GeoAPI.Geometries.Coordinate[]
locations
|
Returns
|
Result<T[][]>
|
Type Parameters
|
T
|
TryCalculateWeight<T>(Router, Profile, WeightHandler<T>, GeoAPI.Geometries.Coordinate[], GeoAPI.Geometries.Coordinate[])
Calculates all weights between all sources and all targets.
Declaration
public static Result<T[][]> TryCalculateWeight<T>(this Router router, Profile profile, WeightHandler<T> weightHandler, GeoAPI.Geometries.Coordinate[] sources, GeoAPI.Geometries.Coordinate[] targets)where T : struct
Parameters
|
Router
router
|
|
Profile
profile
|
|
WeightHandler<T>
weightHandler
|
|
GeoAPI.Geometries.Coordinate[]
sources
|
|
GeoAPI.Geometries.Coordinate[]
targets
|
Returns
|
Result<T[][]>
|
Type Parameters
|
T
|
TryResolve(Router, Profile, GeoAPI.Geometries.Coordinate, Single)
Searches for the closest point on the routing network that's routable for the given profiles.
Declaration
public static Result<RouterPoint> TryResolve(this Router router, Profile profile, GeoAPI.Geometries.Coordinate coordinate, float searchDistanceInMeter = 50F)
Parameters
|
Router
router
|
|
Profile
profile
|
|
GeoAPI.Geometries.Coordinate
coordinate
|
|
System.Single
searchDistanceInMeter
|
Returns
|
Result<RouterPoint>
|
TryResolve(Router, Profile, GeoAPI.Geometries.Coordinate[], Single)
Searches for the closest points on the routing network that's routable for the given profile(s).
Declaration
public static Result<RouterPoint>[] TryResolve(this Router router, Profile profile, GeoAPI.Geometries.Coordinate[] coordinates, float searchDistanceInMeter = 50F)
Parameters
|
Router
router
|
|
Profile
profile
|
|
GeoAPI.Geometries.Coordinate[]
coordinates
|
|
System.Single
searchDistanceInMeter
|
Returns
|
Result<RouterPoint>[]
|
TryResolve(Router, Profile[], GeoAPI.Geometries.Coordinate, Func<RoutingEdge, Boolean>, Single)
Searches for the closest point on the routing network that's routable for the given profiles.
Declaration
public static Result<RouterPoint> TryResolve(this Router router, Profile[] profiles, GeoAPI.Geometries.Coordinate coordinate, Func<RoutingEdge, bool> isBetter, float searchDistanceInMeter = 50F)
Parameters
|
Router
router
|
|
Profile[]
profiles
|
|
GeoAPI.Geometries.Coordinate
coordinate
|
|
Func<RoutingEdge, System.Boolean>
isBetter
|
|
System.Single
searchDistanceInMeter
|
Returns
|
Result<RouterPoint>
|
TryResolve(Router, Profile[], GeoAPI.Geometries.Coordinate, Single)
Searches for the closest point on the routing network that's routable for the given profiles.
Declaration
public static Result<RouterPoint> TryResolve(this Router router, Profile[] profiles, GeoAPI.Geometries.Coordinate coordinate, float searchDistanceInMeter = 50F)
Parameters
|
Router
router
|
|
Profile[]
profiles
|
|
GeoAPI.Geometries.Coordinate
coordinate
|
|
System.Single
searchDistanceInMeter
|
Returns
|
Result<RouterPoint>
|
TryResolve(Router, Profile[], GeoAPI.Geometries.Coordinate[], Single)
Searches for the closest points on the routing network that's routable for the given profile(s).
Declaration
public static Result<RouterPoint>[] TryResolve(this Router router, Profile[] profiles, GeoAPI.Geometries.Coordinate[] coordinates, float searchDistanceInMeter = 50F)
Parameters
|
Router
router
|
|
Profile[]
profiles
|
|
GeoAPI.Geometries.Coordinate[]
coordinates
|
|
System.Single
searchDistanceInMeter
|
Returns
|
Result<RouterPoint>[]
|