TomTom Maps for JavaScript
    Preparing search index...

    Type Alias PathLike

    PathLike: Position[] | Route

    A path or route to follow.

    Use it for route reconstruction, or to make the calculated route follow a specific path rather than calculating a new one.

    • Position[]: An array of coordinate points that defines the path.
    • Route: A complete route object, for route reconstruction.
    // As coordinate array
    const path1: PathLike = [
    [4.9, 52.3],
    [4.91, 52.31],
    [4.92, 52.32]
    ];

    // As existing route
    const path2: PathLike = existingRoute;