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

    Variable fullTrafficIncidentCategoriesConst

    fullTrafficIncidentCategories: readonly [
        "accident",
        "broken-down-vehicle",
        "danger",
        "flooding",
        "fog",
        "frost",
        "jam",
        "lane-closed",
        "other",
        "rain",
        "road-closed",
        "roadworks",
        "wind",
        "animals-on-road",
        "narrow-lanes",
    ] = ...

    All possible traffic incident categories.

    It combines trafficIncidentRequestCategories, which you can both send as filters and receive in responses, with the tile-only categories 'animals-on-road' and 'narrow-lanes'. Those two appear on vector-tile features but never in an Incident Details response or filter. Use this list for categories you receive, and trafficIncidentRequestCategories for categories you send to the Incident Details API as a categoryFilter input.