Finds a route between start and end points, and fills in the Route object on return.


Namespace: ActualMap
Assembly: ActualMap (in ActualMap.dll)

Syntax

Visual Basic (Declaration)
Public Function FindRoute( _ 
   ByVal startX As Double,  _ 
   ByVal startY As Double,  _ 
   ByVal endX As Double,  _ 
   ByVal endY As Double _ 
) As Boolean
C#
public bool FindRoute(
   double startX,
   double startY,
   double endX,
   double endY
)
C++
public:
 bool FindRoute(
   double startX,
   double startY,
   double endX,
   double endY
) sealed 
J#
public bool FindRoute(
   double startX,
   double startY,
   double endX,
   double endY
)
JScript
public  function FindRoute(
   startX : double,
   startY : double,
   endX : double,
   endY : double
) : bool

Parameters

startX
A double expression representing the X coordinate of the start point of the route.
startY
A double expression representing the Y coordinate of the start point of the route.
endX
A double expression representing the X coordinate of the end point of the route.
endY
A double expression representing the Y coordinate of the end point of the route.

Return Value

The method returns True if the route was found successfully.

Remarks

This method uses the start and end coordinates to find the nearest start and end road segments within the distance defined by the MaxDistance property. The route will be calculated between these start and end road segments per the topology of the road network, and one-way and closed roads.

See Also