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(AOrigin, ADestination: TTMSFNCMapsCoordinateRec; ACallback: TTMSFNCDirectionsGetDirectionsCallback = nil; AID: string = ''; ADataPointer: Pointer = nil; AAlternatives: Boolean = False; ATravelMode: TTMSFNCDirectionsTravelMode = tmDriving; AWayPoints: TTMSFNCMapsCoordinateRecArray = nil; AOptimizeWayPoints: Boolean = False; ALocale: string = ''; AMode: TTMSFNCMapsLocaleMode = mlmDefault; AAvoidTolls: Boolean = False; AAvoidHighways: Boolean = False); overload; virtual;
virtual void __fastcall GetDirections(const TTMSFNCMapsCoordinateRec &AOrigin, const TTMSFNCMapsCoordinateRec &ADestination, _di_TTMSFNCDirectionsGetDirectionsCallback ACallback = _di_TTMSFNCDirectionsGetDirectionsCallback(), System::UnicodeString AID = System::UnicodeString(), void * ADataPointer = (void *)(0x0), bool AAlternatives = false, TTMSFNCDirectionsTravelMode ATravelMode = (TTMSFNCDirectionsTravelMode)(0x0), TTMSFNCMapsCoordinateRecArray AWayPoints = TTMSFNCMapsCoordinateRecArray(), bool AOptimizeWayPoints = false, System::UnicodeString ALocale = System::UnicodeString(), TTMSFNCMapsLocaleMode AMode = (TTMSFNCMapsLocaleMode)(0x0), bool AAvoidTolls = false, bool AAvoidHighways = false)/* overload */;
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(AOrigin, ADestination: string; ACallback: TTMSFNCDirectionsGetDirectionsCallback = nil; AID: string = ''; ADataPointer: Pointer = nil; AAlternatives: Boolean = False; ATravelMode: TTMSFNCDirectionsTravelMode = tmDriving; AWayPoints: TStringList = nil; AOptimizeWayPoints: Boolean = False; ALocale: string = ''; AMode: TTMSFNCMapsLocaleMode = mlmDefault; AAvoidTolls: Boolean = False; AAvoidHighways: Boolean = False); overload; virtual;
virtual void __fastcall GetDirections(System::UnicodeString AOrigin, System::UnicodeString ADestination, _di_TTMSFNCDirectionsGetDirectionsCallback ACallback = _di_TTMSFNCDirectionsGetDirectionsCallback(), System::UnicodeString AID = System::UnicodeString(), void * ADataPointer = (void *)(0x0), bool AAlternatives = false, TTMSFNCDirectionsTravelMode ATravelMode = (TTMSFNCDirectionsTravelMode)(0x0), System::Classes::TStringList* AWayPoints = (System::Classes::TStringList*)(0x0), bool AOptimizeWayPoints = false, System::UnicodeString ALocale = System::UnicodeString(), TTMSFNCMapsLocaleMode AMode = (TTMSFNCMapsLocaleMode)(0x0), bool AAvoidTolls = false, bool AAvoidHighways = false)/* overload */;
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;
virtual void __fastcall GetDirections(const TTMSFNCMapsCoordinateRec &AOrigin, const TTMSFNCMapsCoordinateRec &ADestination, const TTMSFNCDirectionsOptionsRec &AOptions)/* overload */;
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;
virtual void __fastcall GetDirections(System::UnicodeString AOrigin, System::UnicodeString ADestination, const TTMSFNCDirectionsOptionsRec &AOptions)/* overload */;
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. |