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

    Type Alias TrafficFlowModuleFeature

    TrafficFlowModuleFeature: Feature<
        LineString
        | MultiLineString,
        {
            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.

    The SDK requests every tile tag these properties come from, so absoluteSpeed and openlr are on each section; partOfTwoWayRoad is there only when true. 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.

    The geometry is a LineString, or a MultiLineString for a section a tile draws in several parts, so check geometry.type before you read its coordinates.