Click or drag to resize

RouteCustomCostFunc Delegate

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
A function that can evaluate information about a link and return an additional cost for travel on that link.

Namespace:  Telogis.GeoBase.Routing
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public delegate void RouteCustomCostFunc(
	CustomRoutingInfo linkInfo,
	ref LinkCost linkCost
)

Parameters

linkInfo
Type: Telogis.GeoBase.RoutingCustomRoutingInfo
A CustomRoutingInfo containing the flags for a link.
linkCost
Type: Telogis.GeoBase.RoutingLinkCost
The cost of the candidate link. This will be populated when this delegate is called, and the delegate should adjust it as necessary
Remarks
Supply a delegate with this signature in order to perform custom routing. The linkCost parameter will have the routing strategy's estimate of the cost for the link when your method is called. You should make any relevant adjustments to this value before you return that represent the cost of traversing this link.

This function can not be used with a GeoStreamRepository.

Related articles: Modifying the Routing Strategy.

See Also