TomTom Maps for JavaScript
    Preparing search index...

    Type Alias TrafficIncidentDetailsByIdsParams

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

    Parameters for fetching specific incidents by their IDs.

    The HTTP method is chosen automatically: GET for up to 5 IDs, POST for more.

    Type Declaration

    • Optionalbbox?: never
    • ids: string[]

      List of incident IDs to fetch.

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

    // Up to 5 IDs — sent as GET
    const params: TrafficIncidentDetailsByIdsParams = {
    ids: ['incident-id-1', 'incident-id-2']
    };

    // More than 5 IDs — sent as POST automatically
    const params: TrafficIncidentDetailsByIdsParams = {
    ids: manyIds
    };