TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ReachableRangeParams

    ReachableRangeParams: CommonServiceParams<
        ReachableRangeRequestAPI,
        ReachableRangeResponseAPI,
    > & Omit<CommonRoutingParams, "costModel" | "vehicle" | "when"> & ReachableRangeOwnParams

    Complete parameters for calculating a reachable range.

    They combine common service parameters, routing parameters and reachable range specific options to compute an isochrone or isodistance polygon.

    The result is a polygon representing the area reachable from the origin within the specified budget (time or distance). Use it for delivery zone visualization, service area mapping, emergency response coverage, store catchment areas or real estate search (30-min commute).

    Results vary based on departure time and traffic conditions, so use appropriate when values for accurate predictions.

    // 30-minute driving range in live traffic
    const params: ReachableRangeParams = {
    origin: [4.9, 52.3],
    budget: { type: 'timeMinutes', value: 30 },
    costModel: { routeType: 'fast', traffic: 'live' }
    };

    // 50 km range for a speed-limited truck
    const truckParams: ReachableRangeParams = {
    origin: [4.9, 52.3],
    budget: { type: 'distanceKM', value: 50 },
    vehicle: {
    model: { dimensions: { weightKG: 40000 } },
    restrictions: { maxSpeedKMH: 80 }
    }
    };

    // Avoid toll roads
    const noTollParams: ReachableRangeParams = {
    origin: [4.9, 52.3],
    budget: { type: 'timeMinutes', value: 45 },
    costModel: { avoid: ['tollRoads'] }
    };