Table of Contents

TTMSFNCCustomRouteCalculator.CalculateRoute Method

Calculates a route between start and end addresses.

API unit family: TMSFNCRoutecalculator Declaring type: TTMSFNCCustomRouteCalculator

Overloads

Overload 1

Calculates a route between start and end addresses.

procedure CalculateRoute(AStartAddress, AEndAddress: string; ACallback: TTMSFNCRouteCalculatorCalculateRouteCallback = nil; AID: string = ''; ADataPointer: Pointer = nil); overload; virtual;

Parameters

Name Description
AStartAddress Start address or place text for the route.
AEndAddress End address or place text for the route.
ACallback Optional callback invoked when the service response is available.
AID Optional caller-defined request identifier.
ADataPointer Optional caller-defined pointer passed through the request.

Overload 2

Calculates a route between start and end coordinates.

procedure CalculateRoute(AStartCoordinate, AEndCoordinate: TTMSFNCMapsCoordinateRec; ACallback: TTMSFNCRouteCalculatorCalculateRouteCallback = nil; AWayPoints: TTMSFNCMapsCoordinateRecArray = nil; AID: string = ''; ADataPointer: Pointer = nil); overload; virtual;

Parameters

Name Description
AStartCoordinate Start coordinate for the route.
AEndCoordinate End coordinate for the route.
ACallback Optional callback invoked when the service response is available.
AWayPoints Optional waypoint coordinates used by the operation.
AID Optional caller-defined request identifier.
ADataPointer Optional caller-defined pointer passed through the request.