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 TrafficFlowModuleFeature

    TrafficFlowModuleFeature: Feature<
        LineString,
        {
            absoluteSpeed?: number;
            displayClass?: number;
            leftHandTraffic: boolean;
            openlr?: string;
            partOfTwoWayRoad?: boolean;
            relativeSpeed: number;
            roadCategory: RoadCategory;
            roadClosure: boolean;
            roadSubcategory?: RoadSubCategory;
        },
    >

    Defines the structure of a traffic flow feature, which extends the basic GeoJSON feature with properties extracted from the traffic flow vector tiles.

    absoluteSpeed, partOfTwoWayRoad and openlr stay undefined with the standard styles, which do not request their tile tags; a custom style whose flow source asks for them populates them. No flow tile carries free-flow speed, travel time, delay or confidence: for historical speed and congestion over an area, use the Traffic Area Analytics service.