Table of Contents

ITMSFNCCustomDirections.GetPostData Method

Builds the provider POST body for a directions request.

API unit family: TMSFNCDirections Declaring type: ITMSFNCCustomDirections

Syntax

function GetPostData(AOrigin, ADestination: string; AOriginLatitude, AOriginLongitude, ADestinationLatitude, ADestinationLongitude: Double; AAlternatives: Boolean = False; ATravelMode: TTMSFNCDirectionsTravelMode = tmDriving; AWayPointList: TStringList = nil; AWayPoints: TTMSFNCMapsCoordinateRecArray = nil; AOptimizeWayPoints: Boolean = False; ALocale: string = ''; AAvoidTolls: Boolean = False; AAvoidHighWays: Boolean = False): string;

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.
AAlternatives When True, alternative routes are requested when supported by the provider.
ATravelMode Travel mode for the route request.
AWayPointList Waypoint list or coordinate array included in 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.
AAvoidTolls When True, toll roads are avoided when supported by the provider.
AAvoidHighWays When True, highways are avoided when supported by the provider.

Returns

The POST body text.