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 TrafficFlowModuleFeature

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

    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, because the standard styles do not request their tile tags. 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.