The Route class is used when calculating the distance, drive time, and quickest or shortest route between two or more points.


The following tables list the members exposed by Route.

Public Properties

  Name Description
Public property CurrentDate Sets a date and time. If this property is not set, the current local time will be used.
Public property DistanceUnit This sets the unit of measure to be used when returning the length of the route, segments and streets.
Public property EnableRestrictions Enables of disables turn restrictions (true by default).
Public property EndPoint Returns the end point of the Route.
Public property Extent Returns a Rectangle representing the spatial extent of the Route.
Public property MaxDistance Specifies the distance to find the nearest start and end road segments.
Public property RouteDistance Returns the value of the distance of the complete route using the unit of measure specified in the DistanceUnit property.
Public property RoutePath Returns the entire path of the Route.
Public property RouteTime Gives the estimated time of the complete route in seconds.
Public property RouteType Controls whether the shortest or quickest route is to be calculated. The default value is Shortest.
Public property Segments Gets the Segments collection of the Route.
Public property StartPoint Returns the start point of the Route.
Public property Streets Gets the Streets collection of the Route.
Public property TransportationMode Specifies a transportation mode (0 by default).
Top

Public Methods

  Name Description
Public method Clear Removes all elements of the Route.
Public method Dispose  
Public method FindMultipointRoute Finds a route between multiple points, and fills in the Route object on return.
Public method FindRoute Overloaded. Finds a route between start and end points, and fills in the Route object on return.
Public method IsStopPoint Indicates whether the point is an intermediary stop point in a multipoint route calculated by the FindMultipointRoute method.
Public method MergeSegments This method merges road segments that belong to the same street.
Top

See Also