Home > @magiclane/maps-sdk > Landmark > setTrackDataDepartureAndDestination

Landmark.setTrackDataDepartureAndDestination() method

Truncates the track data between specified departure and destination coordinates.

Set departure and destination to the same coordinate to create a circuit.

Signature:

setTrackDataDepartureAndDestination(departure: Coordinates, destination: Coordinates): void;

Parameters

Parameter

Type

Description

departure

Coordinates

Coordinates for the new track start.

destination

Coordinates

Coordinates for the new track end.

Returns:

void