Table of Contents

TTMSFNCCustomRouteCalculator.UpdateRouteSegment Method

Updates a route segment with start and end addresses.

API unit family: TMSFNCRoutecalculator Declaring type: TTMSFNCCustomRouteCalculator

Overloads

Overload 1

Updates a route segment with start and end addresses.

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

Parameters

Name Description
ASegment The segment value.
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

Updates a route segment with start and end coordinates.

procedure UpdateRouteSegment(ASegment: TTMSFNCRouteCalculatorSegment; AStartCoordinate, AEndCoordinate: TTMSFNCMapsCoordinateRec; ACallback: TTMSFNCRouteCalculatorCalculateRouteCallback = nil; AID: string = ''; ADataPointer: Pointer = nil); overload; virtual;

Parameters

Name Description
ASegment The segment value.
AStartCoordinate Start coordinate for the route.
AEndCoordinate End coordinate 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.