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...

    Variable functionalRoadClassesConst

    functionalRoadClasses: readonly [
        "MOTORWAY",
        "MAJOR_ROAD",
        "OTHER_MAJOR_ROAD",
        "SECONDARY_ROAD",
        "LOCAL_CONNECTING_ROAD",
        "LOCAL_ROAD_HIGH_IMPORTANCE",
        "LOCAL_ROAD",
        "LOCAL_ROAD_MINOR_IMPORTANCE",
        "OTHER_ROAD",
    ] = ...

    The Functional Road Class identifiers, ordered from highest importance (motorways) to lowest.

    Each class's index in this array is its FRC value in the API (0 for 'MOTORWAY', 1 for 'MAJOR_ROAD', ..., 8 for 'OTHER_ROAD').