TomTom Maps for JavaScript
    Preparing search index...

    Type Alias RoutePlanningLocation

    RoutePlanningLocation: WaypointLike | PathLike

    Generic geographic input for route planning.

    Can be either a waypoint (point location) or a path (line to follow). This flexible type allows mixing different input types in route calculations.

    • Use waypoints for origin, destination, and intermediate stops
    • Use paths for route reconstruction or to force the route along specific roads
    const locations: RoutePlanningLocation[] = [
    [4.9, 52.3], // Start waypoint
    { radiusMeters: 1000, ... }, // Circle waypoint
    existingPathCoordinates, // Path to follow
    [5.0, 52.4] // End waypoint
    ];