Skip to main content
Table of Contents

ITMSFNCCustomDirections.GetPath Method

Builds the provider request path for a directions query.

API unit family: TMSFNCDirections Declaring type: ITMSFNCCustomDirections

Syntax

FMX.TMSFNCDirections.hppPascalC++
function GetPath(AOrigin, ADestination: string; AOriginLatitude, AOriginLongitude, ADestinationLatitude, ADestinationLongitude: Double; ATravelMode: TTMSFNCDirectionsTravelMode; AWayPoints: TTMSFNCMapsCoordinateRecArray = nil): string;
virtual System::UnicodeString __fastcall GetPath(System::UnicodeString AOrigin, System::UnicodeString ADestination, double AOriginLatitude, double AOriginLongitude, double ADestinationLatitude, double ADestinationLongitude, TTMSFNCDirectionsTravelMode ATravelMode, TTMSFNCMapsCoordinateRecArray AWayPoints = TTMSFNCMapsCoordinateRecArray()) = 0;

Parameters

Name Description
AOrigin Origin address or coordinate for the route.
ADestination Destination address or coordinate for the route.
AOriginLatitude Latitude value for the coordinate.
AOriginLongitude Longitude value for the coordinate.
ADestinationLatitude Latitude value for the coordinate.
ADestinationLongitude Longitude value for the coordinate.
ATravelMode Travel mode for the route request.
AWayPoints Waypoint list or coordinate array included in the route request.

Returns

The request path.