This is the documentation of version 1.0.0-rc.3. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias TrafficAreaAnalyticsDateRange

    The continuous date-range variant, which analyses traffic between startDate and endDate.

    type TrafficAreaAnalyticsDateRange = {
        days?: never;
        endDate?: AreaAnalyticsDateInput;
        startDate: AreaAnalyticsDateInput;
    }
    Index
    days?: never

    The end date of the analysis period (inclusive), as a Date object or an ISO 'YYYY-MM-DD' string. By default, it is three days ago, the latest date the service always has data for.

    It must fall within the range TrafficAreaAnalyticsDateRange states, and no later than two days before today.

    '2024-08-07'
    
    new Date('2024-08-07')
    

    The start date of the analysis period, as a Date object or an ISO 'YYYY-MM-DD' string.

    '2024-08-01'
    
    new Date('2024-08-01')