TomTom Maps for JavaScript
    Preparing search index...

    Type Alias Waypoint<T>

    GeoJSON Feature representing a route waypoint.

    Waypoints are points that define the route path. The route will pass through each waypoint in the order they are specified.

    Type Parameters

    • T extends Anything = Anything

      Additional custom properties beyond the standard waypoint properties

    Every waypoint creates a route leg and an arrival instruction.

    // Regular waypoint
    const waypoint: Waypoint = {
    type: 'Feature',
    geometry: { type: 'Point', coordinates: [4.9041, 52.3676] },
    properties: {}
    };

    // Waypoint with custom properties
    const namedWaypoint: Waypoint<{ name: string }> = {
    type: 'Feature',
    geometry: { type: 'Point', coordinates: [4.9041, 52.3676] },
    properties: { name: 'Amsterdam' }
    };