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

    Type Alias TrafficAreaAnalyticsDateRange

    Continuous date-range variant: analyse traffic between startDate and endDate.

    • endDate is optional; when omitted it defaults to three days ago, the latest date the service always has data for.
    • The range spans at least one and at most 31 UTC calendar days.
    • Mutually exclusive with TrafficAreaAnalyticsDays.
    type TrafficAreaAnalyticsDateRange = {
        days?: never;
        endDate?: AreaAnalyticsDateInput;
        startDate: AreaAnalyticsDateInput;
    }
    Index
    days?: never

    End date of the analysis period (inclusive). Accepts a Date object or an ISO 'YYYY-MM-DD' string. When omitted, defaults to three days ago.

    Must be within 31 days from startDate, and no later than two days before today.

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

    Start date of the analysis period. Accepts a Date object or an ISO 'YYYY-MM-DD' string.

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