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

    Type Alias RoadCategory

    RoadCategory: typeof roadCategories[number]

    Road hierarchy category type.

    It classifies roads by their importance and capacity in the transportation network. Use it to filter traffic data by road significance.

    Road hierarchy (from highest to lowest):

    • motorway / motorway_link - High-capacity highways with restricted access
    • trunk / trunk_link - Major inter-city roads
    • primary / primary_link - Primary through routes
    • secondary / secondary_link - Secondary through routes
    • tertiary / tertiary_link - Connecting roads
    • street - Local streets (see StreetRoadSubCategory)
    • service - Service roads (see ServiceRoadSubCategory)
    • track - Unpaved or agricultural tracks