MobileForms Toolkit Documentation

GeoRoute.GetRouteAsync Method (GeoPoint, GeoPoint, Object, GeoPoint[])

Initializes the asynchronous route calculation request.

public void GetRouteAsync(
GeoPoint src,
GeoPoint dst,
object userState,
params GeoPoint[] waypoints
);

Parameters

src
An GeoPoint object representing the source location.
dst
An GeoPoint object representing the target location.
userState
A user state object that can be used to identify the request after it completes asynchronously.
waypoints
Optional array of GeoPoint objects representing the locations that must be visited before reaching the target.

Remarks

The BeginGetRoute method starts the asynchronous request and returns immediately. Thus the result may not be available after the method completes. GeoRoute object raises the event GetRouteCompleted immediately after the asynchronous request completes.

Exceptions

Exception TypeCondition
NotSupportedExceptionA service provider specified by ServiceProvider property does not support this kind of service.

See Also

GeoRoute Class | Resco.Location.Services.GeoRoute Namespace | GeoRoute.GetRouteAsync Overload List