Table of Contents

TTMSFNCCustomDirections.GetDirections Method

Starts an asynchronous directions request.

API unit family: TMSFNCDirections Declaring type: TTMSFNCCustomDirections

Overloads

Overload 1

Starts an asynchronous directions request.

procedure GetDirections;

Parameters

Name Description
AOrigin Origin address or coordinate for the route.
ADestination Destination address or coordinate for the route.
ACallback Callback invoked when the operation completes.
AID Caller-defined request identifier.
ADataPointer Caller-defined pointer stored with the request.
AAlternatives When True, alternative routes are requested when supported by the provider.
ATravelMode Travel mode for the route request.
AWayPoints Waypoint list or coordinate array included in the route request.
AOptimizeWayPoints Waypoint list or coordinate array included in the route request.
ALocale Locale used for provider instructions and responses.
AMode Locale handling mode for the request.
AAvoidTolls When True, toll roads are avoided when supported by the provider.
AAvoidHighways When True, highways are avoided when supported by the provider.

Overload 2

Starts an asynchronous directions request.

procedure GetDirections;

Parameters

Name Description
AOrigin Origin address or coordinate for the route.
ADestination Destination address or coordinate for the route.
ACallback Callback invoked when the operation completes.
AID Caller-defined request identifier.
ADataPointer Caller-defined pointer stored with the request.
AAlternatives When True, alternative routes are requested when supported by the provider.
ATravelMode Travel mode for the route request.
AWayPoints Waypoint list or coordinate array included in the route request.
AOptimizeWayPoints Waypoint list or coordinate array included in the route request.
ALocale Locale used for provider instructions and responses.
AMode Locale handling mode for the request.
AAvoidTolls When True, toll roads are avoided when supported by the provider.
AAvoidHighways When True, highways are avoided when supported by the provider.

Overload 3

Starts an asynchronous directions request.

procedure GetDirections(AOrigin, ADestination: TTMSFNCMapsCoordinateRec; AOptions: TTMSFNCDirectionsOptionsRec); overload; virtual;

Parameters

Name Description
AOrigin Origin address or coordinate for the route.
ADestination Destination address or coordinate for the route.
AOptions Options used to configure the directions request.

Overload 4

Starts an asynchronous directions request.

procedure GetDirections(AOrigin, ADestination: string; AOptions: TTMSFNCDirectionsOptionsRec); overload; virtual;

Parameters

Name Description
AOrigin Origin address or coordinate for the route.
ADestination Destination address or coordinate for the route.
AOptions Options used to configure the directions request.