{
    "openapi": "3.0.1",
    "info": {
        "title": "Disruptions - Road",
        "description": "Disruptions to the road network in Victoria affect many people as they plan and undertake their journeys. This information contains details of disruptions in near real-time on roads managed by the Victorian Department of Transport and Planning as well as roads managed by local councils. The data includes the location and reason for the disruption along with which road it has occurred on.",
        "version": "v2"
    },
    "servers": [
        {
            "url": "https://api.opendata.transport.vic.gov.au/opendata/roads/disruptions"
        }
    ],
    "paths": {
        "/unplanned/v2": {
            "get": {
                "summary": "Unplanned Disruptions-Road",
                "description": "This dataset contains the locations and details of all unplanned road closures and traffic alerts recorded by the Department of Transport and Planning (DTP), in near real-time. \n\nAs part of the v2 Unplanned Disruptions information, the Department of Transport and Planning (DTP) provides enhanced incident data, such as the number of lanes closed, enhanced public advice for consumers, and improved accuracy for an incident’s location.\n\nAlso included are Tow truck allocations within the Melbourne Controlled Area (including Mornington Peninsula) which is done by the Accident Allocation Centre, managed under contract to the DTP. The records either represent a road disruption affecting either a point on a road or a length of road or tow trucks in the Melbourne Controlled Area attending an accident scene for vehicles with a gross vehicle mass less than 4 tonnes only after receiving an allocation number.\n\nThis dataset uses the GeoJSON format. For more information about the GeoJSON format, see the GeoJSON specification here: <a href='https://geojson.org/'>https://geojson.org/</a>\n\n<strong>NOTE:</strong> This API endpoint has a rate limit of 10 calls per minute. Pagination has been implemented with the query parameters “page” and “limit” with default value set to '1' and '0' respectively. The information in this feed is near real time.\n\nPlease refer to this link for the Unplanned Disruptions – Road Technical Documentation:\n\n<a href='https://vrpsaopendatastdlrs01.blob.core.windows.net/opendata/DEP/Unplanned Disruptions%20–%20Road%20API%20Schema%20v2.pdf'>Unplanned Disruptions – Road API Schema v2.pdf</a>",
                "operationId": "get-unplanneddisruptionapi",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The page that the user wants to return.",
                        "schema": {
                            "enum": [
                                1,
                                2,
                                3,
                                4,
                                5,
                                6,
                                7,
                                8,
                                9
                            ],
                            "type": "integer",
                            "default": 1
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "description": "The number of results per page the user wants to return.",
                        "schema": {
                            "enum": [
                                0,
                                100,
                                200,
                                300,
                                400,
                                500
                            ],
                            "type": "integer",
                            "default": 0
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/RoadUnplannedDisruptionGeoJSON"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "RoadUnplannedDisruptionGeoJSON": {
                "type": "object",
                "properties": {
                    "type": {
                        "type": "string"
                    },
                    "features": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "type": {
                                    "type": "string"
                                },
                                "geometry": {
                                    "type": "object",
                                    "properties": {
                                        "type": {
                                            "type": "string"
                                        },
                                        "coordinates": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "type",
                                        "coordinates"
                                    ]
                                },
                                "properties": {
                                    "type": "object",
                                    "properties": {
                                        "impactId": {
                                            "type": "string"
                                        },
                                        "numberLanesImpacted": {
                                            "type": "string"
                                        },
                                        "created": {
                                            "type": "string"
                                        },
                                        "lastUpdated": {
                                            "type": "string"
                                        },
                                        "lastActive": {
                                            "type": "string"
                                        },
                                        "closedRoadName": {
                                            "type": "string"
                                        },
                                        "declaredRoadName": {
                                            "type": "string"
                                        },
                                        "reference": {
                                            "type": "object",
                                            "properties": {
                                                "localRoadName": {
                                                    "type": "string"
                                                },
                                                "roadAuthority": {
                                                    "type": "string"
                                                },
                                                "declaredRoadNumber": {
                                                    "type": "string"
                                                },
                                                "startIntersectionRoadName": {
                                                    "type": "string"
                                                },
                                                "startIntersectionDistance": {
                                                    "type": "string"
                                                },
                                                "startIntersectionDirection": {
                                                    "type": "string"
                                                },
                                                "startIntersectionLocality": {
                                                    "type": "string"
                                                },
                                                "endIntersectionRoadName": {
                                                    "type": "string"
                                                },
                                                "endIntersectionDistance": {
                                                    "type": "string"
                                                },
                                                "endIntersectionDirection": {
                                                    "type": "string"
                                                },
                                                "endIntersectionLocality": {
                                                    "type": "string"
                                                },
                                                "localGovernmentArea": {
                                                    "type": "string"
                                                },
                                                "srns": {
                                                    "type": "string"
                                                },
                                                "closedRoadSESRegion": {
                                                    "type": "string"
                                                },
                                                "closedRoadTransportRegion": {
                                                    "type": "string"
                                                },
                                                "rmaClass": {
                                                    "type": "string"
                                                },
                                                "closedRoadTramRoute": {
                                                    "type": "string"
                                                },
                                                "closedRoadBusRoute": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "startIntersectionLocality"
                                            ]
                                        },
                                        "melway": {
                                            "type": "string"
                                        },
                                        "socialMedia": {
                                            "type": "string"
                                        },
                                        "id": {
                                            "type": "string"
                                        },
                                        "source": {
                                            "type": "object",
                                            "properties": {
                                                "sourceName": {
                                                    "type": "string"
                                                },
                                                "sourceId": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "sourceName",
                                                "sourceId"
                                            ]
                                        },
                                        "status": {
                                            "type": "string"
                                        },
                                        "eventType": {
                                            "type": "string"
                                        },
                                        "eventSubType": {
                                            "type": "string"
                                        },
                                        "impact": {
                                            "type": "object",
                                            "properties": {
                                                "direction": {
                                                    "type": "string"
                                                },
                                                "impactType": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "impactType"
                                            ]
                                        },
                                        "description": {
                                            "type": "string"
                                        },
                                        "vcsd": {
                                            "type": "string"
                                        },
                                        "weblinkURL": {
                                            "type": "string"
                                        },
                                        "roadAccessType": {
                                            "type": "string"
                                        },
                                        "eventLocationStatus": {
                                            "type": "string"
                                        },
                                        "lastClosed": {
                                            "type": "string"
                                        },
                                        "eventId": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "closedRoadName",
                                        "reference",
                                        "melway",
                                        "id",
                                        "source",
                                        "status",
                                        "eventType",
                                        "eventSubType",
                                        "impact",
                                        "description"
                                    ]
                                }
                            },
                            "required": [
                                "type",
                                "geometry",
                                "properties"
                            ]
                        }
                    },
                    "meta": {
                        "type": "object",
                        "properties": {
                            "total_records": {
                                "type": "number"
                            },
                            "page": {
                                "type": "number"
                            },
                            "limit": {
                                "type": "number"
                            },
                            "count": {
                                "type": "number"
                            }
                        },
                        "required": [
                            "total_records",
                            "page",
                            "limit",
                            "count"
                        ]
                    },
                    "links": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "href": {
                                    "type": "string"
                                },
                                "rel": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "href",
                                "rel"
                            ]
                        }
                    }
                },
                "required": [
                    "type",
                    "features",
                    "meta",
                    "links"
                ]
            }
        },
        "securitySchemes": {
            "apiKeyHeader": {
                "type": "apiKey",
                "name": "Ocp-Apim-Subscription-Key",
                "in": "header"
            },
            "apiKeyQuery": {
                "type": "apiKey",
                "name": "subscription-key",
                "in": "query"
            }
        }
    },
    "security": [
        {
            "apiKeyHeader": []
        },
        {
            "apiKeyQuery": []
        }
    ]
}