{
    "openapi": "3.0.1",
    "info": {
        "title": "Freeway Travel Time",
        "description": "Freeway Travel Time contains near real-time information pulled from roadside sensors about travel times for freeways throughout Metropolitan Melbourne.",
        "version": "v1"
    },
    "servers": [
        {
            "url": "https://api.opendata.transport.vic.gov.au/opendata/roads/traffic/freeway-travel-time/v1"
        }
    ],
    "paths": {
        "/traffic": {
            "get": {
                "summary": "Traffic",
                "description": "This dataset contains travel times and traffic conditions collected from road-side sensors for freeways throughout Metropolitan Melbourne. The data includes (where available) the actual travel time, nominal travel time, rounded travel time, travel time variance, average speed, traffic conditions, congestion index, delay and excess delay.\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 has a rate limit of 5 calls per minute.\n\nPlease refer to this link for the Freeway Travel Times - Traffic Technical Documentation:\n\n<a href='https://vicroadsopendatastorehouse.vicroads.vic.gov.au/opendata/DEP/Freeway%20Travel%20Time%20%E2%80%93%20Traffic%20Documentation%20v1.1.pdf'>https://vicroadsopendatastorehouse.vicroads.vic.gov.au/opendata/DEP/Freeway%20Travel%20Time%20%E2%80%93%20Traffic%20Documentation%20v1.1.pdf</a>",
                "operationId": "traffic",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/TrafficGeoJSON"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "TrafficGeoJSON": {
                "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": {
                                                "type": "array",
                                                "items": {
                                                    "type": "number"
                                                }
                                            }
                                        }
                                    }
                                },
                                "properties": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string"
                                        },
                                        "source": {
                                            "type": "object",
                                            "properties": {
                                                "sourceName": {
                                                    "type": "string"
                                                },
                                                "sourceId": {
                                                    "type": "string"
                                                }
                                            }
                                        },
                                        "freewayName": {
                                            "type": "string"
                                        },
                                        "segmentName": {
                                            "type": "string"
                                        },
                                        "direction": {
                                            "type": "string"
                                        },
                                        "publishedTime": {
                                            "type": "string"
                                        },
                                        "enabled": {
                                            "type": "boolean"
                                        },
                                        "parentPathId": {
                                            "type": "string"
                                        },
                                        "pathValid": {
                                            "type": "boolean"
                                        },
                                        "actualTravelTime": {
                                            "type": "integer"
                                        },
                                        "nominalTravelTime": {
                                            "type": "integer"
                                        },
                                        "averageSpeed": {
                                            "type": "integer"
                                        },
                                        "condition": {
                                            "type": "string"
                                        },
                                        "hasOverride": {
                                            "type": "boolean"
                                        },
                                        "roundedTravelTime": {
                                            "type": "integer"
                                        },
                                        "varianceRoundedNominal": {
                                            "type": "integer"
                                        },
                                        "varianceNominal": {
                                            "type": "integer"
                                        },
                                        "dataSubstitution": {
                                            "type": "integer"
                                        },
                                        "includesRampWaitTime": {
                                            "type": "boolean"
                                        },
                                        "congestionIndex": {
                                            "type": "integer"
                                        },
                                        "delay": {
                                            "type": "integer"
                                        },
                                        "excessDelay": {
                                            "type": "integer"
                                        },
                                        "orderOnParent": {
                                            "type": "integer"
                                        }
                                    }
                                }
                            },
                            "required": [
                                "type",
                                "geometry",
                                "properties"
                            ]
                        }
                    }
                }
            }
        },
        "securitySchemes": {
            "apiKeyHeader": {
                "type": "apiKey",
                "name": "Ocp-Apim-Subscription-Key",
                "in": "header"
            },
            "apiKeyQuery": {
                "type": "apiKey",
                "name": "subscription-key",
                "in": "query"
            }
        }
    },
    "security": [
        {
            "apiKeyHeader": []
        },
        {
            "apiKeyQuery": []
        }
    ]
}