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 today.
    • The range must not exceed 31 days.
    • Mutually exclusive with TrafficAreaAnalyticsDays.
    type TrafficAreaAnalyticsDateRange = {
        days?: never;
        endDate?: AreaAnalyticsDateInput;
        startDate: AreaAnalyticsDateInput;
    }
    Index

    Properties

    days?: never

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

    Must be within 31 days from startDate.

    '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')