TomTom Maps for JavaScript
    Preparing search index...

    Type Alias TrafficIncidentProperties

    TrafficIncidentProperties: TrafficIncidentBaseProperties & {
        events: TrafficIncidentEvent[];
        from?: string;
        lengthInMeters?: number;
        roadNumbers?: string[];
        timeValidity: TrafficIncidentTimeValidity;
        tmc?: TrafficIncidentTMC;
        to?: string;
    }

    Full properties of a traffic incident from the Incident Details service.

    Extends TrafficIncidentBaseProperties with fields available in the Incident Details API response but not in map vector-tile features.

    Type Declaration

    • events: TrafficIncidentEvent[]

      One or more events describing the incident in detail.

    • Optionalfrom?: string

      Human-readable description of the start of the affected road.

    • OptionallengthInMeters?: number

      Length of the affected road section in meters.

    • OptionalroadNumbers?: string[]

      Road numbers (e.g. highway designations) affected by the incident.

    • timeValidity: TrafficIncidentTimeValidity

      Whether the incident is currently active or expected in the future.

    • Optionaltmc?: TrafficIncidentTMC

      TMC data for the incident, if available.

    • Optionalto?: string

      Human-readable description of the end of the affected road.