NWFRoute Methods |
The NWFRoute type exposes the following members.
Name | Description | |
---|---|---|
AddStop(RouteStop) |
Adds a RouteStop at the
most logical place in the list. Multiple stops at the same location are ignored. (Inherited from Route.) | |
AddStop(RouteStop, Int32) |
Adds a RouteStop at the
specified location in the list.
(Inherited from Route.) | |
AddStopAtEnd |
Adds a RouteStop at the end of the list of stops.
(Inherited from Route.) | |
AddStops |
Adds all the supplied RouteStop objects to the route at the most logical places in the list.
(Inherited from Route.) | |
Calculate | (Inherited from Route.) | |
Calculate(CancellationToken) | (Inherited from Route.) | |
Calculate(UnitSystem) | (Inherited from Route.) | |
Calculate(UnitSystem, CancellationToken) | (Inherited from Route.) | |
Calculate(UnitSystem, IAsyncDirectionsHandler) | (Inherited from Route.) | |
Calculate(UnitSystem, IAsyncDirectionsHandler, CancellationToken) | (Inherited from Route.) | |
CalculateCostMatrix |
Calculates a matrix of costs to travel from and to each stop in the route.
(Inherited from Route.) | |
CalculateCostMatrix(CancellationToken) |
a matrix of costs to travel from and to each stop in the route allowing
cancellation using a CancellationToken.
Requests the cancellation of a CalculateCostMatrix method calculation using a CancellationToken.
(Inherited from Route.) | |
Clear | (Inherited from Route.) | |
ClearStops |
Clear all RouteStops and Breaks
with specific locations on the route - but not the start and end stops.
(Inherited from Route.) | |
CreateConstraint |
Generate a new constraint for this route.
(Inherited from Route.) | |
DeleteStop |
Removes the given RouteStop from the route. Note that if
an OptimizeStops() operation has been performed on the Route, the original RouteStops
may have been replaced.
(Inherited from Route.) | |
Dispose |
Dispose of this route object.
(Inherited from Route.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
ForceRecalculate |
Force the route to be recalculated. This should be called if anything the route is unaware of changes.
(Inherited from Route.) | |
FromXml |
Clear any existing RouteStops from our route and
load a new set of RouteStops from XML
(passed to this method as a XmlNode.
(Inherited from Route.) | |
GetConstraints(LatLon) |
Return a list of ConstraintLinks for the given link location.
(Inherited from Route.) | |
GetConstraints(LatLon, Boolean) |
Return a list of ConstraintLinks for the given link location.
(Inherited from Route.) | |
GetDirections |
Calculate the route and return a representative
Directions object. The
UnitSystem for the
directions is taken from
Units.
(Inherited from Route.) | |
GetDirections(CancellationToken) |
Requests the cancellation of a GetDirections method calculation using a CancellationToken.
(Inherited from Route.) | |
GetDirections(String) |
Calculate the route and return a representative Directions object using the given culture.
(Inherited from Route.) | |
GetDirections(UnitSystem) |
Calculate the route and return a representative
Directions object using the
specified UnitSystem.
(Inherited from Route.) | |
GetDirections(String, CancellationToken) |
Requests the cancellation of a GetDirections(String) method calculation using a CancellationToken.
(Inherited from Route.) | |
GetDirections(UnitSystem, String) |
Calculate the route and return a representative
Directions object using the specified UnitSystem and culture.
(Inherited from Route.) | |
GetDirections(UnitSystem, CancellationToken) |
Requests the cancellation of a GetDirections(UnitSystem) method calculation using a CancellationToken.
(Inherited from Route.) | |
GetDirections(UnitSystem, String, CancellationToken) |
Requests the cancellation of a GetDirections(UnitSystem, String) method calculation using a CancellationToken.
(Inherited from Route.) | |
GetDirections(UnitSystem, String, IAsyncDirectionsHandler) |
Calculate the route and return a representative
Directions object using the specified UnitSystem and culture.
(Inherited from Route.) | |
GetDirections(UnitSystem, String, IAsyncDirectionsHandler, CancellationToken) |
Gets the Directions for the
route using the specified units. Directions events are sent to 'handler' as directions are built.
Calculation of the directions can be cancelled using the CancellationToken parameter.
(Inherited from Route.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetPath |
Gets the Directions for the route without any textual instructions.
(Inherited from Route.) | |
GetPath(CancellationToken) |
Gets the Directions for the route without any textual instructions.
(Inherited from Route.) | |
GetQuickDirections |
Calculate the route and return a Directions object, without generating
natural language directions or checking for route legality.
(Inherited from Route.) | |
GetQuickDirections(CancellationToken) |
Requests the cancellation of a GetQuickDirections method calculation using a CancellationToken.
(Inherited from Route.) | |
GetRouteHighlight |
Get the likely route that was taken between the points in a given
route history, without generating natural language directions or
checking for route legality.
(Inherited from Route.) | |
GetRouteHighlight(CancellationToken) |
Requests the cancellation of a GetRouteHighlight method calculation using a CancellationToken.
(Inherited from Route.) | |
GetRouteHighlight(String) |
Reads point data from a file, and gets the likely route that was taken between the points in the
route, without generating natural language directions or
checking for route legality.
(Inherited from Route.) | |
GetRouteHighlight(String, CancellationToken) |
Requests the cancellation of a GetRouteHighlight(String) method calculation using a CancellationToken.
(Inherited from Route.) | |
GetStop |
Gets the RouteStop at index.
(Inherited from Route.) | |
GetTimeAndDistance(DistanceUnit, Double, TimeSpan) |
Calculate the time and distance for this route.
(Inherited from Route.) | |
GetTimeAndDistance(DistanceUnit, Double, TimeSpan, CancellationToken) |
Requests the cancellation of a GetTimeAndDistance(DistanceUnit, Double, TimeSpan) method calculation using a CancellationToken.
(Inherited from Route.) | |
GetTimeAndDistance(DistanceUnit, Double, TimeSpan, LinkCost) |
Calculate the time and distance for this route.
(Inherited from Route.) | |
GetTimeAndDistance(DistanceUnit, Double, TimeSpan, LinkCost, CancellationToken) |
Requests the cancellation of a GetTimeAndDistance(DistanceUnit, Double, TimeSpan, LinkCost) method calculation using a CancellationToken.
(Inherited from Route.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetVehicleSpeedLimit(StreetLink, SpeedUnit) | Obsolete.
Gets the speed limit on a link for a vehicle whose specifications are in the
VehicleSpec of this Route. Only supported in local mode.
(Inherited from Route.) | |
GetVehicleSpeedLimit(LatLon, UInt64, SpeedUnit) |
Gets the speed limit on a link for a vehicle whose specifications are in the
VehicleSpec of this Route. Only supported in local mode.
(Inherited from Route.) | |
HitTest | (Inherited from Route.) | |
LoadRouteHighlightFromCsv |
Loads a route from a csv given the filename (and path) of that csv.
The csv requires these Headers:
Lat, Lon, Speed, Heading, TimeSincePreviousStop
(Inherited from Route.) | |
LoadSingleLinkConstraints | ||
OptimizeStops | (Inherited from Route.) | |
OptimizeStops(DateTime) |
Reorder the route stops for an optimal route, according to the current Strategy.
(Inherited from Route.) | |
Render |
Renders the route on the given IMap.
(Inherited from Route.) | |
Serialize |
Serialize the Route to the supplied stream. The serialized Route can be deserialized
using the Deserialize method.
(Inherited from Route.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
ToXmlString |
Convert this route to XML.
The XML is added to the passed in XmlNode.
(Inherited from Route.) |