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

    Type Alias TrafficIncidentDetailsByIdsParams

    TrafficIncidentDetailsByIdsParams: TrafficIncidentDetailsBaseParams & {
        bbox?: never;
        ids: string[];
        polygon?: never;
    }

    Parameters for fetching specific incidents by their IDs.

    Type Declaration

    • Optionalbbox?: never
    • ids: string[]

      Incident IDs to fetch.

      Up to 5 IDs are sent via GET, and more than 5 via POST (maximum 100).

    • Optionalpolygon?: never
    const params: TrafficIncidentDetailsByIdsParams = {
    ids: ['incident-id-1', 'incident-id-2']
    };