Home > @magiclane/maps-sdk > Path > cloneStartEnd

Path.cloneStartEnd() method

Clone path from the given coordinates.

Set start = end to create a circuit track.

Signature:

cloneStartEnd(start: Coordinates, end: Coordinates): Path;

Parameters

Parameter

Type

Description

start

Coordinates

The start coordinates

end

Coordinates

Field coordinates

Returns:

Path

The cloned path