How to get information about traffic incidents in each route locations of a source to destination

I need to find the traffic incidents in each locations of a origin-destination routes. I only found an API to get information about a single point. How it is made possible without multiple iteration of API calls of different locations ? Is there any way from traffic map layer? Please help me .

Actually Incident Details endpoint returns incidents for given bounding box. So you could determine bounding box for the route and use it towards Incident Details.

1 Like

Another option would be to use the “sectionType” request parameter in your request to calculateRoute. When you set sectionType=traffic, you’ll receive data about traffic on route as sections with the route response, as documented here: Calculate Route | Routing API and Extended Routing API

1 Like