Home > @magiclane/maps-sdk > Path > fromCoordinatesWaypoints
Path.fromCoordinatesWaypoints() method
Create a path from list of coordinates and waypoints.
Signature:
static fromCoordinatesWaypoints(params: {
coordinates: Coordinates[];
waypoints: number[];
}): Path;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
params |
{ coordinates: Coordinates[]; waypoints: number[]; } |
Object containing: - coordinates: List of coordinates. - waypoints: List of waypoints (indexes in the coordinates list). |
params properties:
- coordinates: Coordinates[]
- waypoints: number[]
Returns:
The created path