Click or drag to resize

RoutingStrategyShortest Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
A RoutingStrategy that calculates the shortest route between RouteStops.
Inheritance Hierarchy
SystemObject
  Telogis.GeoBase.RoutingRoutingStrategy
    Telogis.GeoBase.RoutingRoutingStrategyShortest

Namespace:  Telogis.GeoBase.Routing
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public class RoutingStrategyShortest : RoutingStrategy, 
	IDisposable

The RoutingStrategyShortest type exposes the following members.

Constructors
  NameDescription
Public methodRoutingStrategyShortest
Initializes a new instance of the RoutingStrategyShortest class
Top
Properties
  NameDescription
Public propertyAllowUTurns
When true, allows the routing engine to instruct a u-turn. When false, generated routes will not contain u-turns if possible. Default is true.
(Inherited from RoutingStrategy.)
Public propertyCostUnits
Gets the units in which the cost for this strategy is calculated in (always returns meters).
(Overrides RoutingStrategyCostUnits.)
Public propertyCustomCostFunction
Gets or sets a custom function used to adjust the cost associated with a particular link.
(Inherited from RoutingStrategy.)
Public propertyCustomRoutingAccessKeys
Gets or sets the custom routing access keys for this route.
(Inherited from RoutingStrategy.)
Public propertyDefaultProfile Obsolete.
The default RoutingProfile for all countries. This profile will be overridden if a profile has been set for another country.
(Inherited from RoutingStrategy.)
Public propertyEnhanceRoute
When true, routing will consider more minor streets close to the direct line between two consecutive route stops. This is likely to improve the quality of shortest routes, but at the price of some impact on performance and memory usage.
Public propertyExtraProcessingRatio
Used to increase the area of the bounding boxes for querying the network.
(Inherited from RoutingStrategy.)
Public propertyIgnoreConstraints
When true, tells the routing engine to ignore all constraints. When false (default), constraints are obeyed.
(Inherited from RoutingStrategy.)
Public propertyIgnoreDrivingDirection
When true, tells the routing engine to ignore the direction of one way roads. Default is false.
(Inherited from RoutingStrategy.)
Public propertyKeepOut
Sets a GeoFence area where the router will not send vehicles. You can use this to keep the route from going through a specific area.
(Inherited from RoutingStrategy.)
Public propertyKeyAccessPredicate
Gets or sets a custom predicate used to instruct the routing engine whether an access constraint may be ignored.
(Inherited from RoutingStrategy.)
Public propertyCode exampleLinkEdits
A set of link edits that, for selected links, will override the default speed that is used when calculating a route.
(Inherited from RoutingStrategy.)
Public propertyObeyPreferredConstraints
When true, tells the routing engine to use preferred constraints. May introduce a performance penalty. When false (default), preferred constraints are not obeyed.
(Inherited from RoutingStrategy.)
Public propertyRoadCrossingBehavior
Sets the permitted type of road crossing behavior (Allowed, Discouraged, Forbidden).
(Inherited from RoutingStrategy.)
Public propertyUseFerries
Sets whether ferry crossings are allowed (true) or should be avoided as much as possible (false). Default is true.
(Inherited from RoutingStrategy.)
Public propertyUseTollRoads
Gets or sets whether this route is allowed to use toll roads. Default is true.
(Inherited from RoutingStrategy.)
Top
Methods
  NameDescription
Public methodCalculateTimeAfter
Calculates the time after passing through the link.
(Inherited from RoutingStrategy.)
Public methodDispose
Frees all (managed & unmanaged) resources associated with this RoutingStrategy.
(Overrides RoutingStrategyDispose.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetAllowedVehicleTypes
Returns the types of vehicles that are allowed on a particular functional class road on this strategy.
(Inherited from RoutingStrategy.)
Public methodGetHashCode
Returns a unique integer for this object.
(Inherited from RoutingStrategy.)
Public methodGetProfile
Gets the RoutingProfile for a certain country for this RoutingStrategy.
(Inherited from RoutingStrategy.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRegisterProfile
Registers the RoutingProfile for a given country and type of vehicle.
(Inherited from RoutingStrategy.)
Public methodSetAllowedVehicleTypes
Sets the types of vehicles that are allowed on a particular functional class road on this strategy.
(Inherited from RoutingStrategy.)
Public methodSetProfile(RoutingProfile) Obsolete. (Inherited from RoutingStrategy.)
Public methodSetProfile(Country, RoutingProfile)
Sets the RoutingProfile for a certain country.
(Inherited from RoutingStrategy.)
Public methodSetProfile(Country, RoutingProfile)
Sets the RoutingProfile for all the countries in an array.
(Inherited from RoutingStrategy.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodToXml
Used to serialize a RoutingStrategy object to XML.
(Inherited from RoutingStrategy.)
Top
Remarks
Examples
This strategy will attempt to minimize the distance traveled on the route, even if this means increasing the driving time (by, for example, taking surface streets and avoiding highways).
C#
// Create a Route.
Route ShortRoute = new Route();
// Change the Route Strategy. Determine the shortest route.
ShortRoute.Strategy = new RoutingStrategyShortest();
See Also