TomTom Maps for JavaScript
    Preparing search index...

    Type Alias PathLike

    PathLike: Position[] | Route

    Input representing a path or route to follow.

    Used for route reconstruction or when you want the calculated route to follow a specific path rather than calculating a new one.

    • Position[]: Array of coordinate points defining the path
    • Route: Complete route object (for route reconstruction scenarios)
    // 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;