{
  "openapi": "3.1.0",
  "info": {
    "title": "Traffic census of state-controlled roads, Queensland query API",
    "version": "2026-08-06",
    "summary": "Filter, page and aggregate Traffic census of state-controlled roads, Queensland from Department of Transport and Main Roads.",
    "description": "The query API returns only the rows you ask for, as JSON, NDJSON or CSV, from the same typed rows as the files. It needs no key. The API allows 60 requests in 10 seconds from one address. Above that it answers 429 for 10 seconds with a `Retry-After` header, a `RateLimit-Policy` header and a JSON body that gives the limit. Every API answer carries the same `RateLimit-Policy`. A client should wait the `Retry-After` seconds, or read the files, which have no limit. Every JSON answer carries the version, licence and attribution. CSV and NDJSON answers carry them in response headers. Department of Transport and Main Roads has not endorsed this site. The whole site is described in https://publicdata.au/openapi.json.",
    "license": {
      "name": "CC BY 4.0",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    }
  },
  "servers": [
    {
      "url": "https://publicdata.au"
    }
  ],
  "externalDocs": {
    "url": "https://publicdata.au/d/qld-traffic-census/#query"
  },
  "tags": [
    {
      "name": "query"
    }
  ],
  "paths": {
    "/api/v1/datasets/qld-traffic-census/rows": {
      "get": {
        "tags": [
          "query"
        ],
        "summary": "Query Traffic census of state-controlled roads, Queensland",
        "operationId": "queryRows_qld_traffic_census",
        "description": "Rows of Traffic census of state-controlled roads, Queensland in the newest loaded version, filtered and paged. Each filter is `field=operator.value` in the query string, and every filter must match. A number or date field compares as a number or date, and a text field compares as text. Values are case-sensitive except with `ilike`. Prefix `not.` to negate a filter, as `not.eq.value`. Operators: `eq.value`, `neq.value`, `gt.value`, `gte.value`, `lt.value`, `lte.value`, `like.*text*`, `ilike.*text*`, `in.(a,b,c)`, `is.null`.",
        "parameters": [
          {
            "name": "traffic_year",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The year this traffic estimate represents. Values: 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025.",
            "examples": [
              "eq.2025"
            ]
          },
          {
            "name": "collection_year",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The year data for this AADT estimate was actually collected at this site (may be different from TRAFFIC YEAR). From 1996 to 2025.",
            "examples": [
              "eq.2025"
            ]
          },
          {
            "name": "road_section_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The TMR identifier for the section of road."
          },
          {
            "name": "road_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The gazetted name of the section of road."
          },
          {
            "name": "site_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The TMR identifier for the traffic counting site. From 10007 to 162176."
          },
          {
            "name": "site_type",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. P is a permanent site, C a coverage or temporary site. Values: C, P.",
            "examples": [
              "eq.P"
            ]
          },
          {
            "name": "description",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The description of the physical location of the traffic count site."
          },
          {
            "name": "site_through_distance",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The distance in km from the gazetted start of the road section at which the traffic count site is located. From 0.0 to 628.155."
          },
          {
            "name": "seg_start_through_distance",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The distance in km from the gazetted start of the road section to the start of the segment of road for which traffic count data from this site is representative. From 0.0 to 589.65."
          },
          {
            "name": "seg_end_through_distance",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The distance in km from the gazetted start of the road section to the end of the segment of road for which traffic count data from this site is representative. From 0.04 to 654.795."
          },
          {
            "name": "speed_limit",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The posted speed limit at this site. Values: 40, 50, 60, 70, 80, 90, 100, 110.",
            "examples": [
              "eq.110"
            ]
          },
          {
            "name": "site_latitude",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. From -28.997255 to -10.5749723496313."
          },
          {
            "name": "site_longitude",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. From 138.103896803142 to 153.520176692368."
          },
          {
            "name": "seg_longitude_start",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The longitude of the start of the segment of road for which traffic count data from this site is representative (in decimal degrees). From 138.121323 to 153.516723."
          },
          {
            "name": "seg_latitude_start",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The latitude of the start of the segment of road for which traffic count data from this site is representative (in decimal degrees). From -28.999061 to -10.583867."
          },
          {
            "name": "seg_longitude_end",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The longitude of the end of the segment of road for which traffic count data from this site is representative (in decimal degrees). From 137.996421 to 153.520219."
          },
          {
            "name": "seg_latitude_end",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The latitude of the end of the segment of road for which traffic count data from this site is representative (in decimal degrees). From -28.999153 to -10.583867."
          },
          {
            "name": "district_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The TMR identifier for the district. Values: 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412.",
            "examples": [
              "eq.412"
            ]
          },
          {
            "name": "district_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The TMR District of the site. Values: Central West, Darling Downs, Far North, Fitzroy, Mackay/Whitsunday, Metropolitan, North Coast, North West, Northern, South Coast, South West, Wide Bay/Burnett.",
            "examples": [
              "eq.Wide Bay/Burnett"
            ]
          },
          {
            "name": "region_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The TMR identifier for the region. Values: 306, 307, 310, 314, 315, 316.",
            "examples": [
              "eq.316"
            ]
          },
          {
            "name": "region_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The TMR Region of the site. Values: Central Queensland, Metropolitan, North Coast, North Queensland, South Coast, Southern Queensland.",
            "examples": [
              "eq.Southern Queensland"
            ]
          },
          {
            "name": "lga_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The Local Government Authority identifier. From 300 to 7400.",
            "examples": [
              "eq.7400"
            ]
          },
          {
            "name": "lga_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The Local Government Authority name.",
            "examples": [
              "eq.Winton Shire"
            ]
          },
          {
            "name": "travel_direction",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. AGAINST GAZETTAL, WITH GAZETTAL or BOTH DIRECTIONS, relative to the gazetted direction of the road. Values: AGAINST GAZETTAL, BOTH DIRECTIONS, WITH GAZETTAL.",
            "examples": [
              "eq.WITH GAZETTAL"
            ]
          },
          {
            "name": "aadt",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The total estimated Annual Average Daily Traffic for this site. From 0 to 179550."
          },
          {
            "name": "aadt_class_0a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the light category (0A) corresponding to Austroads Vehicle Classes 1 and 2. From 0.2508 to 174413.8986."
          },
          {
            "name": "aadt_class_0b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the heavy category (0B) corresponding to Austroads Vehicle Classes 3 through 12. From 0.0 to 60986.7704."
          },
          {
            "name": "aadt_class_1a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the light category (1A). Note the same as 0A. From 0.2508 to 174413.8986."
          },
          {
            "name": "aadt_class_1b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the rigid truck category (1B), corresponding to Austroads Vehicle Classes 3, 4 and 5. From 0.0 to 55606.6362."
          },
          {
            "name": "aadt_class_1c",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the articulated category (1C), corresponding to Austroads Vehicle Classes 6, 7, 8 and 9. From 0.0 to 4398.6105."
          },
          {
            "name": "aadt_class_1d",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the b-double / road train category (1D), corresponding to Austroads Vehicle Classes 10,11 and 12. From 0.0 to 2350.3792."
          },
          {
            "name": "aadt_class_2a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the short vehicle category (2A), corresponding to Austroads Vehicle Class 1. From 0.2012 to 153569.115."
          },
          {
            "name": "aadt_class_2b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the short vehicle towing category (2B), corresponding to Austroads Vehicle Class 2. From 0.0 to 2890.755."
          },
          {
            "name": "aadt_class_2c",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the two axle truck category (2C), corresponding to Austroads Vehicle Class 3. From 0.0 to 17250.9792."
          },
          {
            "name": "aadt_class_2d",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the three axle truck category (2D), corresponding to Austroads Vehicle Class 4. From 0.0 to 3297.8898."
          },
          {
            "name": "aadt_class_2e",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the four axle truck category (2E), corresponding to Austroads Vehicle Class 5. From 0.0 to 12491.0235."
          },
          {
            "name": "aadt_class_2f",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the three axle articulated category (2F), corresponding to Austroads Vehicle Class 6. From 0.0 to 1068.4752."
          },
          {
            "name": "aadt_class_2g",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the four axle articulated category (2G), corresponding to Austroads Vehicle Class 7. From 0.0 to 989.568."
          },
          {
            "name": "aadt_class_2h",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the five axle articulated category (2H), corresponding to Austroads Vehicle Class 8. From 0.0 to 695.034."
          },
          {
            "name": "aadt_class_2i",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the six axle articulated category (2I), corresponding to Austroads Vehicle Class 9. From 0.0 to 2253.1632."
          },
          {
            "name": "aadt_class_2j",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the B-double category (2J), corresponding to Austroads Vehicle Class 10. From 0.0 to 1417.5568."
          },
          {
            "name": "aadt_class_2k",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the double road train category (2K), corresponding to Austroads Vehicle Class 11. From 0.0 to 597.2166."
          },
          {
            "name": "aadt_class_2l",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the triple road train category (2L), corresponding to Austroads Vehicle Class 12. From 0.0 to 1173.0123."
          },
          {
            "name": "pc_class_0a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the light category (0A) corresponding to Austroads Vehicle Classes 1 and 2. From 3.03 to 100.0."
          },
          {
            "name": "pc_class_0b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the heavy category (0B) corresponding to Austroads Vehicle Classes 3 through 12. From 0.0 to 96.97."
          },
          {
            "name": "pc_class_1a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the light category (1A). Note the same as 0A. From 3.03 to 100.0."
          },
          {
            "name": "pc_class_1b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the rigid truck category (1B), corresponding to Austroads Vehicle Classes 3, 4 and 5. From 0.0 to 88.16."
          },
          {
            "name": "pc_class_1c",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the articulated category (1C), corresponding to Austroads Vehicle Classes 6, 7, 8 and 9. From 0.0 to 32.56."
          },
          {
            "name": "pc_class_1d",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the b-double / road train category (1D), corresponding to Austroads Vehicle Classes 10,11 and 12. From 0.0 to 40.31."
          },
          {
            "name": "pc_class_2a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the short vehicle category (2A), corresponding to Austroads Vehicle Class 1. From 2.2 to 100.0."
          },
          {
            "name": "pc_class_2b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the short vehicle towing category (2B), corresponding to Austroads Vehicle Class 2. From 0.0 to 44.18."
          },
          {
            "name": "pc_class_2c",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the two axle truck category (2C), corresponding to Austroads Vehicle Class 3. From 0.0 to 86.12."
          },
          {
            "name": "pc_class_2d",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the three axle truck category (2D), corresponding to Austroads Vehicle Class 4. From 0.0 to 56.43."
          },
          {
            "name": "pc_class_2e",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the four axle truck category (2E), corresponding to Austroads Vehicle Class 5. From 0.0 to 34.5."
          },
          {
            "name": "pc_class_2f",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the three axle articulated category (2F), corresponding to Austroads Vehicle Class 6. From 0.0 to 15.77."
          },
          {
            "name": "pc_class_2g",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the four axle articulated category (2G), corresponding to Austroads Vehicle Class 7. From 0.0 to 13.85."
          },
          {
            "name": "pc_class_2h",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the five axle articulated category (2H), corresponding to Austroads Vehicle Class 8. From 0.0 to 6.79."
          },
          {
            "name": "pc_class_2i",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the six axle articulated category (2I), corresponding to Austroads Vehicle Class 9. From 0.0 to 24.81."
          },
          {
            "name": "pc_class_2j",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the B-double category (2J), corresponding to Austroads Vehicle Class 10. From 0.0 to 32.82."
          },
          {
            "name": "pc_class_2k",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the double road train category (2K), corresponding to Austroads Vehicle Class 11. From 0.0 to 37.31."
          },
          {
            "name": "pc_class_2l",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the triple road train category (2L), corresponding to Austroads Vehicle Class 12. From 0.0 to 35.93."
          },
          {
            "name": "growth_pc_1yr",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Annual Growth (%) from one year previous to this count. From -98.81 to 615.79."
          },
          {
            "name": "growth_pc_5yr",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Annual Growth (%) from five years previous to this count. From -66.53 to 92.12."
          },
          {
            "name": "growth_pc_10yr",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Annual Growth (%) from 10 years previous to this count. From -48.07 to 46.33."
          },
          {
            "name": "select",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Fields to return, comma-separated. Every field when absent."
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "`field.asc` or `field.desc`, comma-separated. The publisher's row order when absent."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 100
            },
            "description": "Rows per page, 1 to 10,000. 100 when absent."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            },
            "description": "Rows to skip. The `next` URL in each answer sets it for you."
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "ndjson",
                "csv"
              ],
              "default": "json"
            },
            "description": "`json`, `ndjson` or `csv`. JSON carries the provenance header, and the others carry it in response headers."
          }
        ],
        "responses": {
          "200": {
            "description": "Rows with the version, licence and attribution. `next` is the URL of the following page, or null."
          },
          "400": {
            "description": "The query names a field the dataset does not have, or a value of the wrong type."
          },
          "404": {
            "description": "The dataset or version is not loaded for queries."
          },
          "429": {
            "description": "More than 60 requests in 10 seconds from one address. Blocked for 10 seconds. Wait `Retry-After` seconds.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the block lifts."
              },
              "RateLimit-Policy": {
                "schema": {
                  "type": "string"
                },
                "description": "The limit, as \"fair-use\";q=60;w=10."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer",
                      "const": 429
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "window_seconds": {
                      "type": "integer"
                    },
                    "block_seconds": {
                      "type": "integer"
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    },
                    "files": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/datasets/qld-traffic-census/versions/{version}/rows": {
      "get": {
        "tags": [
          "query"
        ],
        "summary": "Query Traffic census of state-controlled roads, Queensland",
        "operationId": "queryRows_qld_traffic_census_version",
        "description": "Rows of Traffic census of state-controlled roads, Queensland in one dated version, filtered and paged. Each filter is `field=operator.value` in the query string, and every filter must match. A number or date field compares as a number or date, and a text field compares as text. Values are case-sensitive except with `ilike`. Prefix `not.` to negate a filter, as `not.eq.value`. Operators: `eq.value`, `neq.value`, `gt.value`, `gte.value`, `lt.value`, `lte.value`, `like.*text*`, `ilike.*text*`, `in.(a,b,c)`, `is.null`.",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "A dated version loaded for queries, from the versions path. Answers for a dated version never change."
          },
          {
            "name": "traffic_year",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The year this traffic estimate represents. Values: 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025.",
            "examples": [
              "eq.2025"
            ]
          },
          {
            "name": "collection_year",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The year data for this AADT estimate was actually collected at this site (may be different from TRAFFIC YEAR). From 1996 to 2025.",
            "examples": [
              "eq.2025"
            ]
          },
          {
            "name": "road_section_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The TMR identifier for the section of road."
          },
          {
            "name": "road_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The gazetted name of the section of road."
          },
          {
            "name": "site_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The TMR identifier for the traffic counting site. From 10007 to 162176."
          },
          {
            "name": "site_type",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. P is a permanent site, C a coverage or temporary site. Values: C, P.",
            "examples": [
              "eq.P"
            ]
          },
          {
            "name": "description",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The description of the physical location of the traffic count site."
          },
          {
            "name": "site_through_distance",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The distance in km from the gazetted start of the road section at which the traffic count site is located. From 0.0 to 628.155."
          },
          {
            "name": "seg_start_through_distance",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The distance in km from the gazetted start of the road section to the start of the segment of road for which traffic count data from this site is representative. From 0.0 to 589.65."
          },
          {
            "name": "seg_end_through_distance",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The distance in km from the gazetted start of the road section to the end of the segment of road for which traffic count data from this site is representative. From 0.04 to 654.795."
          },
          {
            "name": "speed_limit",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The posted speed limit at this site. Values: 40, 50, 60, 70, 80, 90, 100, 110.",
            "examples": [
              "eq.110"
            ]
          },
          {
            "name": "site_latitude",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. From -28.997255 to -10.5749723496313."
          },
          {
            "name": "site_longitude",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. From 138.103896803142 to 153.520176692368."
          },
          {
            "name": "seg_longitude_start",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The longitude of the start of the segment of road for which traffic count data from this site is representative (in decimal degrees). From 138.121323 to 153.516723."
          },
          {
            "name": "seg_latitude_start",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The latitude of the start of the segment of road for which traffic count data from this site is representative (in decimal degrees). From -28.999061 to -10.583867."
          },
          {
            "name": "seg_longitude_end",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The longitude of the end of the segment of road for which traffic count data from this site is representative (in decimal degrees). From 137.996421 to 153.520219."
          },
          {
            "name": "seg_latitude_end",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The latitude of the end of the segment of road for which traffic count data from this site is representative (in decimal degrees). From -28.999153 to -10.583867."
          },
          {
            "name": "district_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The TMR identifier for the district. Values: 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412.",
            "examples": [
              "eq.412"
            ]
          },
          {
            "name": "district_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The TMR District of the site. Values: Central West, Darling Downs, Far North, Fitzroy, Mackay/Whitsunday, Metropolitan, North Coast, North West, Northern, South Coast, South West, Wide Bay/Burnett.",
            "examples": [
              "eq.Wide Bay/Burnett"
            ]
          },
          {
            "name": "region_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The TMR identifier for the region. Values: 306, 307, 310, 314, 315, 316.",
            "examples": [
              "eq.316"
            ]
          },
          {
            "name": "region_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The TMR Region of the site. Values: Central Queensland, Metropolitan, North Coast, North Queensland, South Coast, Southern Queensland.",
            "examples": [
              "eq.Southern Queensland"
            ]
          },
          {
            "name": "lga_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The Local Government Authority identifier. From 300 to 7400.",
            "examples": [
              "eq.7400"
            ]
          },
          {
            "name": "lga_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The Local Government Authority name.",
            "examples": [
              "eq.Winton Shire"
            ]
          },
          {
            "name": "travel_direction",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. AGAINST GAZETTAL, WITH GAZETTAL or BOTH DIRECTIONS, relative to the gazetted direction of the road. Values: AGAINST GAZETTAL, BOTH DIRECTIONS, WITH GAZETTAL.",
            "examples": [
              "eq.WITH GAZETTAL"
            ]
          },
          {
            "name": "aadt",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The total estimated Annual Average Daily Traffic for this site. From 0 to 179550."
          },
          {
            "name": "aadt_class_0a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the light category (0A) corresponding to Austroads Vehicle Classes 1 and 2. From 0.2508 to 174413.8986."
          },
          {
            "name": "aadt_class_0b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the heavy category (0B) corresponding to Austroads Vehicle Classes 3 through 12. From 0.0 to 60986.7704."
          },
          {
            "name": "aadt_class_1a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the light category (1A). Note the same as 0A. From 0.2508 to 174413.8986."
          },
          {
            "name": "aadt_class_1b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the rigid truck category (1B), corresponding to Austroads Vehicle Classes 3, 4 and 5. From 0.0 to 55606.6362."
          },
          {
            "name": "aadt_class_1c",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the articulated category (1C), corresponding to Austroads Vehicle Classes 6, 7, 8 and 9. From 0.0 to 4398.6105."
          },
          {
            "name": "aadt_class_1d",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the b-double / road train category (1D), corresponding to Austroads Vehicle Classes 10,11 and 12. From 0.0 to 2350.3792."
          },
          {
            "name": "aadt_class_2a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the short vehicle category (2A), corresponding to Austroads Vehicle Class 1. From 0.2012 to 153569.115."
          },
          {
            "name": "aadt_class_2b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the short vehicle towing category (2B), corresponding to Austroads Vehicle Class 2. From 0.0 to 2890.755."
          },
          {
            "name": "aadt_class_2c",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the two axle truck category (2C), corresponding to Austroads Vehicle Class 3. From 0.0 to 17250.9792."
          },
          {
            "name": "aadt_class_2d",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the three axle truck category (2D), corresponding to Austroads Vehicle Class 4. From 0.0 to 3297.8898."
          },
          {
            "name": "aadt_class_2e",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the four axle truck category (2E), corresponding to Austroads Vehicle Class 5. From 0.0 to 12491.0235."
          },
          {
            "name": "aadt_class_2f",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the three axle articulated category (2F), corresponding to Austroads Vehicle Class 6. From 0.0 to 1068.4752."
          },
          {
            "name": "aadt_class_2g",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the four axle articulated category (2G), corresponding to Austroads Vehicle Class 7. From 0.0 to 989.568."
          },
          {
            "name": "aadt_class_2h",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the five axle articulated category (2H), corresponding to Austroads Vehicle Class 8. From 0.0 to 695.034."
          },
          {
            "name": "aadt_class_2i",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the six axle articulated category (2I), corresponding to Austroads Vehicle Class 9. From 0.0 to 2253.1632."
          },
          {
            "name": "aadt_class_2j",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the B-double category (2J), corresponding to Austroads Vehicle Class 10. From 0.0 to 1417.5568."
          },
          {
            "name": "aadt_class_2k",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the double road train category (2K), corresponding to Austroads Vehicle Class 11. From 0.0 to 597.2166."
          },
          {
            "name": "aadt_class_2l",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the triple road train category (2L), corresponding to Austroads Vehicle Class 12. From 0.0 to 1173.0123."
          },
          {
            "name": "pc_class_0a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the light category (0A) corresponding to Austroads Vehicle Classes 1 and 2. From 3.03 to 100.0."
          },
          {
            "name": "pc_class_0b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the heavy category (0B) corresponding to Austroads Vehicle Classes 3 through 12. From 0.0 to 96.97."
          },
          {
            "name": "pc_class_1a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the light category (1A). Note the same as 0A. From 3.03 to 100.0."
          },
          {
            "name": "pc_class_1b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the rigid truck category (1B), corresponding to Austroads Vehicle Classes 3, 4 and 5. From 0.0 to 88.16."
          },
          {
            "name": "pc_class_1c",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the articulated category (1C), corresponding to Austroads Vehicle Classes 6, 7, 8 and 9. From 0.0 to 32.56."
          },
          {
            "name": "pc_class_1d",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the b-double / road train category (1D), corresponding to Austroads Vehicle Classes 10,11 and 12. From 0.0 to 40.31."
          },
          {
            "name": "pc_class_2a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the short vehicle category (2A), corresponding to Austroads Vehicle Class 1. From 2.2 to 100.0."
          },
          {
            "name": "pc_class_2b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the short vehicle towing category (2B), corresponding to Austroads Vehicle Class 2. From 0.0 to 44.18."
          },
          {
            "name": "pc_class_2c",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the two axle truck category (2C), corresponding to Austroads Vehicle Class 3. From 0.0 to 86.12."
          },
          {
            "name": "pc_class_2d",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the three axle truck category (2D), corresponding to Austroads Vehicle Class 4. From 0.0 to 56.43."
          },
          {
            "name": "pc_class_2e",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the four axle truck category (2E), corresponding to Austroads Vehicle Class 5. From 0.0 to 34.5."
          },
          {
            "name": "pc_class_2f",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the three axle articulated category (2F), corresponding to Austroads Vehicle Class 6. From 0.0 to 15.77."
          },
          {
            "name": "pc_class_2g",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the four axle articulated category (2G), corresponding to Austroads Vehicle Class 7. From 0.0 to 13.85."
          },
          {
            "name": "pc_class_2h",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the five axle articulated category (2H), corresponding to Austroads Vehicle Class 8. From 0.0 to 6.79."
          },
          {
            "name": "pc_class_2i",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the six axle articulated category (2I), corresponding to Austroads Vehicle Class 9. From 0.0 to 24.81."
          },
          {
            "name": "pc_class_2j",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the B-double category (2J), corresponding to Austroads Vehicle Class 10. From 0.0 to 32.82."
          },
          {
            "name": "pc_class_2k",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the double road train category (2K), corresponding to Austroads Vehicle Class 11. From 0.0 to 37.31."
          },
          {
            "name": "pc_class_2l",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the triple road train category (2L), corresponding to Austroads Vehicle Class 12. From 0.0 to 35.93."
          },
          {
            "name": "growth_pc_1yr",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Annual Growth (%) from one year previous to this count. From -98.81 to 615.79."
          },
          {
            "name": "growth_pc_5yr",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Annual Growth (%) from five years previous to this count. From -66.53 to 92.12."
          },
          {
            "name": "growth_pc_10yr",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Annual Growth (%) from 10 years previous to this count. From -48.07 to 46.33."
          },
          {
            "name": "select",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Fields to return, comma-separated. Every field when absent."
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "`field.asc` or `field.desc`, comma-separated. The publisher's row order when absent."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 100
            },
            "description": "Rows per page, 1 to 10,000. 100 when absent."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            },
            "description": "Rows to skip. The `next` URL in each answer sets it for you."
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "ndjson",
                "csv"
              ],
              "default": "json"
            },
            "description": "`json`, `ndjson` or `csv`. JSON carries the provenance header, and the others carry it in response headers."
          }
        ],
        "responses": {
          "200": {
            "description": "Rows with the version, licence and attribution. `next` is the URL of the following page, or null."
          },
          "400": {
            "description": "The query names a field the dataset does not have, or a value of the wrong type."
          },
          "404": {
            "description": "The dataset or version is not loaded for queries."
          },
          "429": {
            "description": "More than 60 requests in 10 seconds from one address. Blocked for 10 seconds. Wait `Retry-After` seconds.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the block lifts."
              },
              "RateLimit-Policy": {
                "schema": {
                  "type": "string"
                },
                "description": "The limit, as \"fair-use\";q=60;w=10."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer",
                      "const": 429
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "window_seconds": {
                      "type": "integer"
                    },
                    "block_seconds": {
                      "type": "integer"
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    },
                    "files": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/datasets/{slug}/aggregate": {
      "get": {
        "tags": [
          "query"
        ],
        "summary": "Counts, sums, averages, minimums and maximums by group",
        "operationId": "aggregate",
        "description": "Groups and totals of any dataset in the newest loaded version. Filters work as they do on rows. Each filter is `field=operator.value` in the query string, and every filter must match. A number or date field compares as a number or date, and a text field compares as text. Values are case-sensitive except with `ilike`. Prefix `not.` to negate a filter, as `not.eq.value`. Operators: `eq.value`, `neq.value`, `gt.value`, `gte.value`, `lt.value`, `lte.value`, `like.*text*`, `ilike.*text*`, `in.(a,b,c)`, `is.null`.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "qld-traffic-census"
              ]
            },
            "description": "The dataset's slug, as in its page URL `/d/<slug>/`."
          },
          {
            "name": "group",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "On `aggregate`, fields to group by, comma-separated."
          },
          {
            "name": "metric",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "count"
            },
            "description": "On `aggregate`, `count`, `sum.field`, `avg.field`, `min.field` or `max.field`, comma-separated. `count` when absent."
          },
          {
            "name": "traffic_year",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The year this traffic estimate represents. Values: 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025.",
            "examples": [
              "eq.2025"
            ]
          },
          {
            "name": "collection_year",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The year data for this AADT estimate was actually collected at this site (may be different from TRAFFIC YEAR). From 1996 to 2025.",
            "examples": [
              "eq.2025"
            ]
          },
          {
            "name": "road_section_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The TMR identifier for the section of road."
          },
          {
            "name": "road_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The gazetted name of the section of road."
          },
          {
            "name": "site_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The TMR identifier for the traffic counting site. From 10007 to 162176."
          },
          {
            "name": "site_type",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. P is a permanent site, C a coverage or temporary site. Values: C, P.",
            "examples": [
              "eq.P"
            ]
          },
          {
            "name": "description",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The description of the physical location of the traffic count site."
          },
          {
            "name": "site_through_distance",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The distance in km from the gazetted start of the road section at which the traffic count site is located. From 0.0 to 628.155."
          },
          {
            "name": "seg_start_through_distance",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The distance in km from the gazetted start of the road section to the start of the segment of road for which traffic count data from this site is representative. From 0.0 to 589.65."
          },
          {
            "name": "seg_end_through_distance",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The distance in km from the gazetted start of the road section to the end of the segment of road for which traffic count data from this site is representative. From 0.04 to 654.795."
          },
          {
            "name": "speed_limit",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The posted speed limit at this site. Values: 40, 50, 60, 70, 80, 90, 100, 110.",
            "examples": [
              "eq.110"
            ]
          },
          {
            "name": "site_latitude",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. From -28.997255 to -10.5749723496313."
          },
          {
            "name": "site_longitude",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. From 138.103896803142 to 153.520176692368."
          },
          {
            "name": "seg_longitude_start",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The longitude of the start of the segment of road for which traffic count data from this site is representative (in decimal degrees). From 138.121323 to 153.516723."
          },
          {
            "name": "seg_latitude_start",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The latitude of the start of the segment of road for which traffic count data from this site is representative (in decimal degrees). From -28.999061 to -10.583867."
          },
          {
            "name": "seg_longitude_end",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The longitude of the end of the segment of road for which traffic count data from this site is representative (in decimal degrees). From 137.996421 to 153.520219."
          },
          {
            "name": "seg_latitude_end",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The latitude of the end of the segment of road for which traffic count data from this site is representative (in decimal degrees). From -28.999153 to -10.583867."
          },
          {
            "name": "district_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The TMR identifier for the district. Values: 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412.",
            "examples": [
              "eq.412"
            ]
          },
          {
            "name": "district_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The TMR District of the site. Values: Central West, Darling Downs, Far North, Fitzroy, Mackay/Whitsunday, Metropolitan, North Coast, North West, Northern, South Coast, South West, Wide Bay/Burnett.",
            "examples": [
              "eq.Wide Bay/Burnett"
            ]
          },
          {
            "name": "region_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The TMR identifier for the region. Values: 306, 307, 310, 314, 315, 316.",
            "examples": [
              "eq.316"
            ]
          },
          {
            "name": "region_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The TMR Region of the site. Values: Central Queensland, Metropolitan, North Coast, North Queensland, South Coast, Southern Queensland.",
            "examples": [
              "eq.Southern Queensland"
            ]
          },
          {
            "name": "lga_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The Local Government Authority identifier. From 300 to 7400.",
            "examples": [
              "eq.7400"
            ]
          },
          {
            "name": "lga_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The Local Government Authority name.",
            "examples": [
              "eq.Winton Shire"
            ]
          },
          {
            "name": "travel_direction",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. AGAINST GAZETTAL, WITH GAZETTAL or BOTH DIRECTIONS, relative to the gazetted direction of the road. Values: AGAINST GAZETTAL, BOTH DIRECTIONS, WITH GAZETTAL.",
            "examples": [
              "eq.WITH GAZETTAL"
            ]
          },
          {
            "name": "aadt",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The total estimated Annual Average Daily Traffic for this site. From 0 to 179550."
          },
          {
            "name": "aadt_class_0a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the light category (0A) corresponding to Austroads Vehicle Classes 1 and 2. From 0.2508 to 174413.8986."
          },
          {
            "name": "aadt_class_0b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the heavy category (0B) corresponding to Austroads Vehicle Classes 3 through 12. From 0.0 to 60986.7704."
          },
          {
            "name": "aadt_class_1a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the light category (1A). Note the same as 0A. From 0.2508 to 174413.8986."
          },
          {
            "name": "aadt_class_1b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the rigid truck category (1B), corresponding to Austroads Vehicle Classes 3, 4 and 5. From 0.0 to 55606.6362."
          },
          {
            "name": "aadt_class_1c",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the articulated category (1C), corresponding to Austroads Vehicle Classes 6, 7, 8 and 9. From 0.0 to 4398.6105."
          },
          {
            "name": "aadt_class_1d",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the b-double / road train category (1D), corresponding to Austroads Vehicle Classes 10,11 and 12. From 0.0 to 2350.3792."
          },
          {
            "name": "aadt_class_2a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the short vehicle category (2A), corresponding to Austroads Vehicle Class 1. From 0.2012 to 153569.115."
          },
          {
            "name": "aadt_class_2b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the short vehicle towing category (2B), corresponding to Austroads Vehicle Class 2. From 0.0 to 2890.755."
          },
          {
            "name": "aadt_class_2c",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the two axle truck category (2C), corresponding to Austroads Vehicle Class 3. From 0.0 to 17250.9792."
          },
          {
            "name": "aadt_class_2d",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the three axle truck category (2D), corresponding to Austroads Vehicle Class 4. From 0.0 to 3297.8898."
          },
          {
            "name": "aadt_class_2e",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the four axle truck category (2E), corresponding to Austroads Vehicle Class 5. From 0.0 to 12491.0235."
          },
          {
            "name": "aadt_class_2f",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the three axle articulated category (2F), corresponding to Austroads Vehicle Class 6. From 0.0 to 1068.4752."
          },
          {
            "name": "aadt_class_2g",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the four axle articulated category (2G), corresponding to Austroads Vehicle Class 7. From 0.0 to 989.568."
          },
          {
            "name": "aadt_class_2h",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the five axle articulated category (2H), corresponding to Austroads Vehicle Class 8. From 0.0 to 695.034."
          },
          {
            "name": "aadt_class_2i",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the six axle articulated category (2I), corresponding to Austroads Vehicle Class 9. From 0.0 to 2253.1632."
          },
          {
            "name": "aadt_class_2j",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the B-double category (2J), corresponding to Austroads Vehicle Class 10. From 0.0 to 1417.5568."
          },
          {
            "name": "aadt_class_2k",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the double road train category (2K), corresponding to Austroads Vehicle Class 11. From 0.0 to 597.2166."
          },
          {
            "name": "aadt_class_2l",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the triple road train category (2L), corresponding to Austroads Vehicle Class 12. From 0.0 to 1173.0123."
          },
          {
            "name": "pc_class_0a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the light category (0A) corresponding to Austroads Vehicle Classes 1 and 2. From 3.03 to 100.0."
          },
          {
            "name": "pc_class_0b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the heavy category (0B) corresponding to Austroads Vehicle Classes 3 through 12. From 0.0 to 96.97."
          },
          {
            "name": "pc_class_1a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the light category (1A). Note the same as 0A. From 3.03 to 100.0."
          },
          {
            "name": "pc_class_1b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the rigid truck category (1B), corresponding to Austroads Vehicle Classes 3, 4 and 5. From 0.0 to 88.16."
          },
          {
            "name": "pc_class_1c",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the articulated category (1C), corresponding to Austroads Vehicle Classes 6, 7, 8 and 9. From 0.0 to 32.56."
          },
          {
            "name": "pc_class_1d",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the b-double / road train category (1D), corresponding to Austroads Vehicle Classes 10,11 and 12. From 0.0 to 40.31."
          },
          {
            "name": "pc_class_2a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the short vehicle category (2A), corresponding to Austroads Vehicle Class 1. From 2.2 to 100.0."
          },
          {
            "name": "pc_class_2b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the short vehicle towing category (2B), corresponding to Austroads Vehicle Class 2. From 0.0 to 44.18."
          },
          {
            "name": "pc_class_2c",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the two axle truck category (2C), corresponding to Austroads Vehicle Class 3. From 0.0 to 86.12."
          },
          {
            "name": "pc_class_2d",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the three axle truck category (2D), corresponding to Austroads Vehicle Class 4. From 0.0 to 56.43."
          },
          {
            "name": "pc_class_2e",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the four axle truck category (2E), corresponding to Austroads Vehicle Class 5. From 0.0 to 34.5."
          },
          {
            "name": "pc_class_2f",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the three axle articulated category (2F), corresponding to Austroads Vehicle Class 6. From 0.0 to 15.77."
          },
          {
            "name": "pc_class_2g",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the four axle articulated category (2G), corresponding to Austroads Vehicle Class 7. From 0.0 to 13.85."
          },
          {
            "name": "pc_class_2h",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the five axle articulated category (2H), corresponding to Austroads Vehicle Class 8. From 0.0 to 6.79."
          },
          {
            "name": "pc_class_2i",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the six axle articulated category (2I), corresponding to Austroads Vehicle Class 9. From 0.0 to 24.81."
          },
          {
            "name": "pc_class_2j",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the B-double category (2J), corresponding to Austroads Vehicle Class 10. From 0.0 to 32.82."
          },
          {
            "name": "pc_class_2k",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the double road train category (2K), corresponding to Austroads Vehicle Class 11. From 0.0 to 37.31."
          },
          {
            "name": "pc_class_2l",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the triple road train category (2L), corresponding to Austroads Vehicle Class 12. From 0.0 to 35.93."
          },
          {
            "name": "growth_pc_1yr",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Annual Growth (%) from one year previous to this count. From -98.81 to 615.79."
          },
          {
            "name": "growth_pc_5yr",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Annual Growth (%) from five years previous to this count. From -66.53 to 92.12."
          },
          {
            "name": "growth_pc_10yr",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Annual Growth (%) from 10 years previous to this count. From -48.07 to 46.33."
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "`field.asc` or `field.desc`, comma-separated. The publisher's row order when absent."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 100
            },
            "description": "Rows per page, 1 to 10,000. 100 when absent."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            },
            "description": "Rows to skip. The `next` URL in each answer sets it for you."
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "ndjson",
                "csv"
              ],
              "default": "json"
            },
            "description": "`json`, `ndjson` or `csv`. JSON carries the provenance header, and the others carry it in response headers."
          }
        ],
        "responses": {
          "200": {
            "description": "Rows with the version, licence and attribution. `next` is the URL of the following page, or null."
          },
          "400": {
            "description": "The query names a field the dataset does not have, or a value of the wrong type."
          },
          "404": {
            "description": "The dataset or version is not loaded for queries."
          },
          "429": {
            "description": "More than 60 requests in 10 seconds from one address. Blocked for 10 seconds. Wait `Retry-After` seconds.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the block lifts."
              },
              "RateLimit-Policy": {
                "schema": {
                  "type": "string"
                },
                "description": "The limit, as \"fair-use\";q=60;w=10."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer",
                      "const": 429
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "window_seconds": {
                      "type": "integer"
                    },
                    "block_seconds": {
                      "type": "integer"
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    },
                    "files": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/datasets/{slug}/versions/{version}/aggregate": {
      "get": {
        "tags": [
          "query"
        ],
        "summary": "Counts, sums, averages, minimums and maximums by group",
        "operationId": "aggregateVersion",
        "description": "Groups and totals of any dataset in one dated version. Filters work as they do on rows. Each filter is `field=operator.value` in the query string, and every filter must match. A number or date field compares as a number or date, and a text field compares as text. Values are case-sensitive except with `ilike`. Prefix `not.` to negate a filter, as `not.eq.value`. Operators: `eq.value`, `neq.value`, `gt.value`, `gte.value`, `lt.value`, `lte.value`, `like.*text*`, `ilike.*text*`, `in.(a,b,c)`, `is.null`.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "qld-traffic-census"
              ]
            },
            "description": "The dataset's slug, as in its page URL `/d/<slug>/`."
          },
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "A dated version loaded for queries, from the versions path. Answers for a dated version never change."
          },
          {
            "name": "group",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "On `aggregate`, fields to group by, comma-separated."
          },
          {
            "name": "metric",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "count"
            },
            "description": "On `aggregate`, `count`, `sum.field`, `avg.field`, `min.field` or `max.field`, comma-separated. `count` when absent."
          },
          {
            "name": "traffic_year",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The year this traffic estimate represents. Values: 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025.",
            "examples": [
              "eq.2025"
            ]
          },
          {
            "name": "collection_year",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The year data for this AADT estimate was actually collected at this site (may be different from TRAFFIC YEAR). From 1996 to 2025.",
            "examples": [
              "eq.2025"
            ]
          },
          {
            "name": "road_section_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The TMR identifier for the section of road."
          },
          {
            "name": "road_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The gazetted name of the section of road."
          },
          {
            "name": "site_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The TMR identifier for the traffic counting site. From 10007 to 162176."
          },
          {
            "name": "site_type",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. P is a permanent site, C a coverage or temporary site. Values: C, P.",
            "examples": [
              "eq.P"
            ]
          },
          {
            "name": "description",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The description of the physical location of the traffic count site."
          },
          {
            "name": "site_through_distance",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The distance in km from the gazetted start of the road section at which the traffic count site is located. From 0.0 to 628.155."
          },
          {
            "name": "seg_start_through_distance",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The distance in km from the gazetted start of the road section to the start of the segment of road for which traffic count data from this site is representative. From 0.0 to 589.65."
          },
          {
            "name": "seg_end_through_distance",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The distance in km from the gazetted start of the road section to the end of the segment of road for which traffic count data from this site is representative. From 0.04 to 654.795."
          },
          {
            "name": "speed_limit",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The posted speed limit at this site. Values: 40, 50, 60, 70, 80, 90, 100, 110.",
            "examples": [
              "eq.110"
            ]
          },
          {
            "name": "site_latitude",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. From -28.997255 to -10.5749723496313."
          },
          {
            "name": "site_longitude",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. From 138.103896803142 to 153.520176692368."
          },
          {
            "name": "seg_longitude_start",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The longitude of the start of the segment of road for which traffic count data from this site is representative (in decimal degrees). From 138.121323 to 153.516723."
          },
          {
            "name": "seg_latitude_start",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The latitude of the start of the segment of road for which traffic count data from this site is representative (in decimal degrees). From -28.999061 to -10.583867."
          },
          {
            "name": "seg_longitude_end",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The longitude of the end of the segment of road for which traffic count data from this site is representative (in decimal degrees). From 137.996421 to 153.520219."
          },
          {
            "name": "seg_latitude_end",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The latitude of the end of the segment of road for which traffic count data from this site is representative (in decimal degrees). From -28.999153 to -10.583867."
          },
          {
            "name": "district_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The TMR identifier for the district. Values: 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412.",
            "examples": [
              "eq.412"
            ]
          },
          {
            "name": "district_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The TMR District of the site. Values: Central West, Darling Downs, Far North, Fitzroy, Mackay/Whitsunday, Metropolitan, North Coast, North West, Northern, South Coast, South West, Wide Bay/Burnett.",
            "examples": [
              "eq.Wide Bay/Burnett"
            ]
          },
          {
            "name": "region_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The TMR identifier for the region. Values: 306, 307, 310, 314, 315, 316.",
            "examples": [
              "eq.316"
            ]
          },
          {
            "name": "region_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The TMR Region of the site. Values: Central Queensland, Metropolitan, North Coast, North Queensland, South Coast, Southern Queensland.",
            "examples": [
              "eq.Southern Queensland"
            ]
          },
          {
            "name": "lga_id",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The Local Government Authority identifier. From 300 to 7400.",
            "examples": [
              "eq.7400"
            ]
          },
          {
            "name": "lga_name",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. The Local Government Authority name.",
            "examples": [
              "eq.Winton Shire"
            ]
          },
          {
            "name": "travel_direction",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "string. AGAINST GAZETTAL, WITH GAZETTAL or BOTH DIRECTIONS, relative to the gazetted direction of the road. Values: AGAINST GAZETTAL, BOTH DIRECTIONS, WITH GAZETTAL.",
            "examples": [
              "eq.WITH GAZETTAL"
            ]
          },
          {
            "name": "aadt",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "integer. The total estimated Annual Average Daily Traffic for this site. From 0 to 179550."
          },
          {
            "name": "aadt_class_0a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the light category (0A) corresponding to Austroads Vehicle Classes 1 and 2. From 0.2508 to 174413.8986."
          },
          {
            "name": "aadt_class_0b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the heavy category (0B) corresponding to Austroads Vehicle Classes 3 through 12. From 0.0 to 60986.7704."
          },
          {
            "name": "aadt_class_1a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the light category (1A). Note the same as 0A. From 0.2508 to 174413.8986."
          },
          {
            "name": "aadt_class_1b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the rigid truck category (1B), corresponding to Austroads Vehicle Classes 3, 4 and 5. From 0.0 to 55606.6362."
          },
          {
            "name": "aadt_class_1c",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the articulated category (1C), corresponding to Austroads Vehicle Classes 6, 7, 8 and 9. From 0.0 to 4398.6105."
          },
          {
            "name": "aadt_class_1d",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the b-double / road train category (1D), corresponding to Austroads Vehicle Classes 10,11 and 12. From 0.0 to 2350.3792."
          },
          {
            "name": "aadt_class_2a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the short vehicle category (2A), corresponding to Austroads Vehicle Class 1. From 0.2012 to 153569.115."
          },
          {
            "name": "aadt_class_2b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the short vehicle towing category (2B), corresponding to Austroads Vehicle Class 2. From 0.0 to 2890.755."
          },
          {
            "name": "aadt_class_2c",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the two axle truck category (2C), corresponding to Austroads Vehicle Class 3. From 0.0 to 17250.9792."
          },
          {
            "name": "aadt_class_2d",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the three axle truck category (2D), corresponding to Austroads Vehicle Class 4. From 0.0 to 3297.8898."
          },
          {
            "name": "aadt_class_2e",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the four axle truck category (2E), corresponding to Austroads Vehicle Class 5. From 0.0 to 12491.0235."
          },
          {
            "name": "aadt_class_2f",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the three axle articulated category (2F), corresponding to Austroads Vehicle Class 6. From 0.0 to 1068.4752."
          },
          {
            "name": "aadt_class_2g",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the four axle articulated category (2G), corresponding to Austroads Vehicle Class 7. From 0.0 to 989.568."
          },
          {
            "name": "aadt_class_2h",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the five axle articulated category (2H), corresponding to Austroads Vehicle Class 8. From 0.0 to 695.034."
          },
          {
            "name": "aadt_class_2i",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the six axle articulated category (2I), corresponding to Austroads Vehicle Class 9. From 0.0 to 2253.1632."
          },
          {
            "name": "aadt_class_2j",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the B-double category (2J), corresponding to Austroads Vehicle Class 10. From 0.0 to 1417.5568."
          },
          {
            "name": "aadt_class_2k",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the double road train category (2K), corresponding to Austroads Vehicle Class 11. From 0.0 to 597.2166."
          },
          {
            "name": "aadt_class_2l",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. The Annual Average Daily Traffic for vehicles in the triple road train category (2L), corresponding to Austroads Vehicle Class 12. From 0.0 to 1173.0123."
          },
          {
            "name": "pc_class_0a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the light category (0A) corresponding to Austroads Vehicle Classes 1 and 2. From 3.03 to 100.0."
          },
          {
            "name": "pc_class_0b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the heavy category (0B) corresponding to Austroads Vehicle Classes 3 through 12. From 0.0 to 96.97."
          },
          {
            "name": "pc_class_1a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the light category (1A). Note the same as 0A. From 3.03 to 100.0."
          },
          {
            "name": "pc_class_1b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the rigid truck category (1B), corresponding to Austroads Vehicle Classes 3, 4 and 5. From 0.0 to 88.16."
          },
          {
            "name": "pc_class_1c",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the articulated category (1C), corresponding to Austroads Vehicle Classes 6, 7, 8 and 9. From 0.0 to 32.56."
          },
          {
            "name": "pc_class_1d",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the b-double / road train category (1D), corresponding to Austroads Vehicle Classes 10,11 and 12. From 0.0 to 40.31."
          },
          {
            "name": "pc_class_2a",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the short vehicle category (2A), corresponding to Austroads Vehicle Class 1. From 2.2 to 100.0."
          },
          {
            "name": "pc_class_2b",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the short vehicle towing category (2B), corresponding to Austroads Vehicle Class 2. From 0.0 to 44.18."
          },
          {
            "name": "pc_class_2c",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the two axle truck category (2C), corresponding to Austroads Vehicle Class 3. From 0.0 to 86.12."
          },
          {
            "name": "pc_class_2d",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the three axle truck category (2D), corresponding to Austroads Vehicle Class 4. From 0.0 to 56.43."
          },
          {
            "name": "pc_class_2e",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the four axle truck category (2E), corresponding to Austroads Vehicle Class 5. From 0.0 to 34.5."
          },
          {
            "name": "pc_class_2f",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the three axle articulated category (2F), corresponding to Austroads Vehicle Class 6. From 0.0 to 15.77."
          },
          {
            "name": "pc_class_2g",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the four axle articulated category (2G), corresponding to Austroads Vehicle Class 7. From 0.0 to 13.85."
          },
          {
            "name": "pc_class_2h",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the five axle articulated category (2H), corresponding to Austroads Vehicle Class 8. From 0.0 to 6.79."
          },
          {
            "name": "pc_class_2i",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the six axle articulated category (2I), corresponding to Austroads Vehicle Class 9. From 0.0 to 24.81."
          },
          {
            "name": "pc_class_2j",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the B-double category (2J), corresponding to Austroads Vehicle Class 10. From 0.0 to 32.82."
          },
          {
            "name": "pc_class_2k",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the double road train category (2K), corresponding to Austroads Vehicle Class 11. From 0.0 to 37.31."
          },
          {
            "name": "pc_class_2l",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Proportion of vehicles in the triple road train category (2L), corresponding to Austroads Vehicle Class 12. From 0.0 to 35.93."
          },
          {
            "name": "growth_pc_1yr",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Annual Growth (%) from one year previous to this count. From -98.81 to 615.79."
          },
          {
            "name": "growth_pc_5yr",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Annual Growth (%) from five years previous to this count. From -66.53 to 92.12."
          },
          {
            "name": "growth_pc_10yr",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "number. Annual Growth (%) from 10 years previous to this count. From -48.07 to 46.33."
          },
          {
            "name": "order",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "`field.asc` or `field.desc`, comma-separated. The publisher's row order when absent."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000,
              "default": 100
            },
            "description": "Rows per page, 1 to 10,000. 100 when absent."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            },
            "description": "Rows to skip. The `next` URL in each answer sets it for you."
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "ndjson",
                "csv"
              ],
              "default": "json"
            },
            "description": "`json`, `ndjson` or `csv`. JSON carries the provenance header, and the others carry it in response headers."
          }
        ],
        "responses": {
          "200": {
            "description": "Rows with the version, licence and attribution. `next` is the URL of the following page, or null."
          },
          "400": {
            "description": "The query names a field the dataset does not have, or a value of the wrong type."
          },
          "404": {
            "description": "The dataset or version is not loaded for queries."
          },
          "429": {
            "description": "More than 60 requests in 10 seconds from one address. Blocked for 10 seconds. Wait `Retry-After` seconds.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the block lifts."
              },
              "RateLimit-Policy": {
                "schema": {
                  "type": "string"
                },
                "description": "The limit, as \"fair-use\";q=60;w=10."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer",
                      "const": 429
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "window_seconds": {
                      "type": "integer"
                    },
                    "block_seconds": {
                      "type": "integer"
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    },
                    "files": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/datasets/{slug}/versions": {
      "get": {
        "tags": [
          "query"
        ],
        "summary": "The versions loaded for queries, newest first, with the URLs to query each",
        "operationId": "queryVersions",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "qld-traffic-census"
              ]
            },
            "description": "The dataset's slug, as in its page URL `/d/<slug>/`."
          }
        ],
        "responses": {
          "200": {
            "description": "Loaded versions with row counts and URLs."
          },
          "404": {
            "description": "The dataset or version is not loaded for queries."
          },
          "429": {
            "description": "More than 60 requests in 10 seconds from one address. Blocked for 10 seconds. Wait `Retry-After` seconds.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until the block lifts."
              },
              "RateLimit-Policy": {
                "schema": {
                  "type": "string"
                },
                "description": "The limit, as \"fair-use\";q=60;w=10."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer",
                      "const": 429
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "window_seconds": {
                      "type": "integer"
                    },
                    "block_seconds": {
                      "type": "integer"
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    },
                    "files": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
