Azure Maps Traffic Service (stable:2025-01-01)

2025/07/02 • 1 updated methods

Traffic_GetTrafficIncident (updated)
Description The API provides a GeoJSON feature collection of traffic incidents. Each incident includes two point features: the location where you encounter the incident and the end location of a traffic incident like the end of a construction zone. For traffic incident coverage by country/region, see [traffic coverage](https://learn.microsoft.com/azure/azure-maps/traffic-coverage?pivots=latest).
Reference Link ¶

⚶ Changes

{
  "#id": "Traffic_GetTrafficIncident",
  "$parameters": [
    {
      "#name": "bbox",
      "Description": {
        "new": "A rectangular area for the area of interest on the Earth. The sides of the rectangles are defined by longitude and latitude values. It must conform to the GeoJSON format [minLon, minLat, maxLon, maxLat]. For more information, see\u202f [RFC 7946, Section 5](https://www.rfc-editor.org/rfc/rfc7946#section-5). \n\n The height or width of the bounding box should be at least 12m. The maximum area of a bounding box is 10,000 km\u202f^2. \n\nExample: bbox=-105,37,-94,45",
        "old": "A rectangular area for the area of interest on the Earth. The sides of the rectangles are defined by longitude and latitude values. It must conform to the GeoJSON format [minLon, minLat, maxLon, maxLat]. For more information, see\u202f [RFC 7946, Section 5](https://www.rfc-editor.org/rfc/rfc7946#section-5). \n\n The height or width of the bounding box should be at least 12m and not exceed 500,000m. A maximum limit of 30 degrees for either width or height is enforced. (maxLon - minLon should <= 30 and maxLat - minLat should <= 30). \n\nExample: bbox=-105,37,-94,45"
      }
    }
  ]
}

⚼ Request

GET:  /traffic/incident
{
x-ms-client-id: string ,
api-version: string ,
incidentType: string ,
bbox: array ,
Accept-Language: string ,
}

⚐ Response (200)

{
type: enum ,
features:
[
object ,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}