{
  "openapi": "3.1.0",
  "info": {
    "title": "Harrowgate Group free planning tools",
    "version": "1.0.0",
    "description": "Read-only answer endpoints for the free calculators and checkers at harrowgategroup.com/tools/. Preliminary planning only; the engineer or designer of record governs."
  },
  "servers": [
    {
      "url": "https://harrowgategroup.com"
    }
  ],
  "paths": {
    "/api/tools/": {
      "get": {
        "operationId": "listTools",
        "summary": "List every free planning tool, with its parameters and an example URL",
        "parameters": [
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The tool list",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/asphalt-concrete-calculator": {
      "get": {
        "operationId": "asphaltConcreteCalculator",
        "summary": "Asphalt and Concrete Calculator",
        "description": "Tonnes of hot mix asphalt for a paving area, or cubic metres and truck loads of ready-mix concrete for a slab, footing or column. Same numbers as the tool page https://harrowgategroup.com/asphalt-concrete-calculator/. Every parameter is optional and has a default. Example: https://harrowgategroup.com/api/tools/asphalt-concrete-calculator?mode=asphalt&units=ft&length=60&width=20&thickness=2&thickness_unit=in",
        "parameters": [
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "asphalt",
                "concrete"
              ],
              "default": "asphalt"
            },
            "description": "Which calculation to run."
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "ft",
                "m"
              ],
              "default": "ft"
            },
            "description": "Units for lengths and areas."
          },
          {
            "name": "how",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "lw",
                "area"
              ],
              "default": "lw"
            },
            "description": "Enter the paving area as length and width (lw) or as a total area (area). Used when mode=asphalt."
          },
          {
            "name": "length",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Length of the paving area or slab. Unit: ft or m. Default depends on mode: {\"asphalt\":60,\"concrete\":20}."
          },
          {
            "name": "width",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Width of the paving area or slab. Unit: ft or m. Default depends on mode: {\"asphalt\":20,\"concrete\":12}."
          },
          {
            "name": "area",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 1200
            },
            "description": "Total paving area, used when how=area. Unit: sq ft or m2. Used when mode=asphalt."
          },
          {
            "name": "thickness",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Compacted asphalt thickness, or concrete slab thickness. Unit: in or mm. Default depends on mode: {\"asphalt\":2,\"concrete\":4}."
          },
          {
            "name": "thickness_unit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "in",
                "mm"
              ],
              "default": "in"
            },
            "description": "Unit for thickness."
          },
          {
            "name": "density",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 2350
            },
            "description": "Compacted asphalt density. 2350 kg/m3 equals 110 lb per square yard per inch. Unit: kg/m3. Used when mode=asphalt."
          },
          {
            "name": "shape",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "slab",
                "col"
              ],
              "default": "slab"
            },
            "description": "Slab or footing (slab), or round column or pier (col). Used when mode=concrete."
          },
          {
            "name": "diameter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 1
            },
            "description": "Column diameter, used when shape=col. Unit: ft or m. Used when mode=concrete."
          },
          {
            "name": "height",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 6
            },
            "description": "Column height or depth, used when shape=col. Unit: ft or m. Used when mode=concrete."
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "description": "Number of columns or piers, used when shape=col. Used when mode=concrete."
          },
          {
            "name": "waste",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 7
            },
            "description": "Waste allowance on the concrete order. Unit: percent. Used when mode=concrete."
          },
          {
            "name": "truck",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 8
            },
            "description": "Ready-mix truck capacity. Unit: m3. Used when mode=concrete."
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The result with its source, limits and a link to the tool page and the free quote form",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing, not a number, or not an allowed value; the body lists the accepted parameters",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/trench-shoring-checker": {
      "get": {
        "operationId": "trenchShoringChecker",
        "summary": "Trench Shoring Requirement Checker",
        "description": "Whether Ontario Regulation 213/91 requires a support system for an excavation, by depth, width and soil type, which kinds are permitted, and which other excavation rules apply. Same numbers as the tool page https://harrowgategroup.com/trench-shoring-checker/. Every parameter is optional and has a default. Example: https://harrowgategroup.com/api/tools/trench-shoring-checker?units=m&depth=2.5&width=1&soil=2&enter=yes&wall=vertical",
        "parameters": [
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "m",
                "ft"
              ],
              "default": "m"
            },
            "description": "Units for depth and width."
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 2.5
            },
            "description": "Excavation depth. Unit: m or ft."
          },
          {
            "name": "width",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 1
            },
            "description": "Excavation width at the bottom. Unit: m or ft."
          },
          {
            "name": "soil",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "enum": [
                1,
                2,
                3,
                4
              ],
              "default": 2
            },
            "description": "Soil type 1 to 4 under section 226. If more than one type is present, use the highest number."
          },
          {
            "name": "enter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "yes",
                "no"
              ],
              "default": "yes"
            },
            "description": "Whether a worker will be required to enter the excavation."
          },
          {
            "name": "wall",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "vertical",
                "sloped",
                "rock"
              ],
              "default": "vertical"
            },
            "description": "How the walls are formed: vertical or near vertical, sloped back at the gradient in section 234(2) for the soil type, or cut in sound and stable rock."
          },
          {
            "name": "hydrostatic",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "no",
                "yes"
              ],
              "default": "no"
            },
            "description": "Whether hydrostatic pressure or groundwater is present in the soil."
          },
          {
            "name": "adjacent",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "no",
                "yes"
              ],
              "default": "no"
            },
            "description": "Whether the excavation could affect an adjacent building or structure."
          },
          {
            "name": "engineer_opinion",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "no",
                "yes"
              ],
              "default": "no"
            },
            "description": "Whether there is a written engineer opinion that an unsupported wall is stable (section 234(2)(h), non-trench excavations only)."
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The result with its source, limits and a link to the tool page and the free quote form",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing, not a number, or not an allowed value; the body lists the accepted parameters",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/excavation-spoil-volume-calculator": {
      "get": {
        "operationId": "excavationSpoilVolumeCalculator",
        "summary": "Excavation and Spoil Volume Calculator",
        "description": "Bank volume, loose volume after swell and truck loads for a trench or pit, with vertical or sloped walls. Same numbers as the tool page https://harrowgategroup.com/excavation-spoil-volume-calculator/. Every parameter is optional and has a default. Example: https://harrowgategroup.com/api/tools/excavation-spoil-volume-calculator?units=m&length=30&width=1.2&depth=2.5&slope=0&material=earth&truck=10",
        "parameters": [
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "m",
                "ft"
              ],
              "default": "m"
            },
            "description": "Units for dimensions."
          },
          {
            "name": "length",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 30
            },
            "description": "Bottom length. Unit: m or ft."
          },
          {
            "name": "width",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 1.2
            },
            "description": "Bottom width. Unit: m or ft."
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 2.5
            },
            "description": "Depth. Unit: m or ft."
          },
          {
            "name": "slope",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 0
            },
            "description": "Horizontal run per 1 vertical on the walls: 0 for vertical, 1 (Type 1 to 3 soil, 1 vertical to 1 horizontal), 3 (Type 4 soil, 1 vertical to 3 horizontal), or any other number."
          },
          {
            "name": "sides",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "long",
                "all"
              ],
              "default": "long"
            },
            "description": "Where the slope applies: long sides only (trench with vertical ends) or all four sides (pit)."
          },
          {
            "name": "material",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "clay",
                "earth",
                "loam",
                "sand",
                "gravel",
                "gravel-wet-clay",
                "mixed",
                "rock"
              ],
              "default": "earth"
            },
            "description": "Material, used to set the swell factor when swell is not given."
          },
          {
            "name": "swell",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Swell factor. Default is the middle of the published range for the material (earth 25). Unit: percent."
          },
          {
            "name": "truck",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 10
            },
            "description": "Truck body capacity, loose. Unit: m3."
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The result with its source, limits and a link to the tool page and the free quote form",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing, not a number, or not an allowed value; the body lists the accepted parameters",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/hydro-excavation-vs-mechanical-checker": {
      "get": {
        "operationId": "hydroExcavationVsMechanicalChecker",
        "summary": "Hydro Excavation or Mechanical Digging Near Buried Electrical Lines",
        "description": "Which excavation method the Electrical Safety Authority guideline allows near a located underground electrical distribution line: hand, vacuum (hydro) or machine. Same numbers as the tool page https://harrowgategroup.com/hydro-excavation-vs-mechanical-checker/. Every parameter is optional and has a default. Example: https://harrowgategroup.com/api/tools/hydro-excavation-vs-mechanical-checker?locate=current&area=inside&orientation=parallel&test_holes=yes&clearance=0.5&units=m&method=mech",
        "parameters": [
          {
            "name": "locate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "current",
                "none",
                "expired"
              ],
              "default": "current"
            },
            "description": "Locate status: current (received, not expired, markings clear), none (not yet requested or received), expired (expired or markings unclear)."
          },
          {
            "name": "area",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "inside",
                "outside"
              ],
              "default": "inside"
            },
            "description": "Whether the excavation is inside or outside the located area on the locate form."
          },
          {
            "name": "orientation",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "parallel",
                "cross"
              ],
              "default": "parallel"
            },
            "description": "Whether the dig runs parallel to the line (parallel) or crosses it or works near a point on it (cross)."
          },
          {
            "name": "test_holes",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "no",
                "yes"
              ],
              "default": "no"
            },
            "description": "Whether the line has been exposed by test holes with depth and alignment confirmed."
          },
          {
            "name": "clearance",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 0.5
            },
            "description": "Planned clearance from the line to the dig. Unit: m or ft."
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "m",
                "ft"
              ],
              "default": "m"
            },
            "description": "Units for clearance."
          },
          {
            "name": "method",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "mech",
                "vac",
                "hand"
              ],
              "default": "mech"
            },
            "description": "Method being considered: mech (mechanical), vac (vacuum excavation) or hand."
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The result with its source, limits and a link to the tool page and the free quote form",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing, not a number, or not an allowed value; the body lists the accepted parameters",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/rebar-quantity-calculator": {
      "get": {
        "operationId": "rebarQuantityCalculator",
        "summary": "Rebar Quantity Calculator",
        "description": "Bar count, total length, stock bars and mass for a slab or pad mat or a strip footing, using CSA G30.18 metric bar sizes. Same numbers as the tool page https://harrowgategroup.com/rebar-quantity-calculator/. Every parameter is optional and has a default. Example: https://harrowgategroup.com/api/tools/rebar-quantity-calculator?layout=mat&units=m&length=12&width=6&spacing=300&bar=15M",
        "parameters": [
          {
            "name": "layout",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "mat",
                "strip"
              ],
              "default": "mat"
            },
            "description": "Slab or pad mat (mat) or strip footing (strip)."
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "m",
                "ft"
              ],
              "default": "m"
            },
            "description": "Units for lengths."
          },
          {
            "name": "length",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Slab length or footing length. Unit: m or ft. Default depends on layout: {\"mat\":12,\"strip\":40}."
          },
          {
            "name": "width",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Slab width or footing width. Unit: m or ft. Default depends on layout: {\"mat\":6,\"strip\":0.9}."
          },
          {
            "name": "spacing",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Bar spacing each way (mat) or transverse bar spacing (strip). Unit: mm. Default depends on layout: {\"mat\":300,\"strip\":450}."
          },
          {
            "name": "layers",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "description": "Number of layers (mats). Used when layout=mat."
          },
          {
            "name": "long_bars",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 4
            },
            "description": "Number of longitudinal bars in the footing. Used when layout=strip."
          },
          {
            "name": "bar",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "10M",
                "15M",
                "20M",
                "25M",
                "30M",
                "35M"
              ],
              "default": "15M"
            },
            "description": "CSA G30.18 bar size."
          },
          {
            "name": "cover",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 75
            },
            "description": "Concrete cover. Unit: mm."
          },
          {
            "name": "lap",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 0
            },
            "description": "Lap splice length from the drawings. 0 adds no laps. Unit: mm."
          },
          {
            "name": "stock",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 12
            },
            "description": "Stock bar length. Unit: m."
          },
          {
            "name": "waste",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 5
            },
            "description": "Waste allowance. Unit: percent."
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The result with its source, limits and a link to the tool page and the free quote form",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing, not a number, or not an allowed value; the body lists the accepted parameters",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/curb-sidewalk-concrete-calculator": {
      "get": {
        "operationId": "curbSidewalkConcreteCalculator",
        "summary": "Curb and Sidewalk Concrete Calculator",
        "description": "Concrete volume, order quantity and ready-mix truck loads for a run of sidewalk, curb or curb and gutter, with an Ontario accessible path width check. Same numbers as the tool page https://harrowgategroup.com/curb-sidewalk-concrete-calculator/. Every parameter is optional and has a default. Example: https://harrowgategroup.com/api/tools/curb-sidewalk-concrete-calculator?element=walk&units=m&length=60&width=1.5&thickness=125",
        "parameters": [
          {
            "name": "element",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "walk",
                "curb"
              ],
              "default": "walk"
            },
            "description": "Sidewalk (walk) or curb or curb and gutter (curb)."
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "m",
                "ft"
              ],
              "default": "m"
            },
            "description": "Units for length and width."
          },
          {
            "name": "length",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Run length. Unit: m or ft. Default depends on element: {\"walk\":60,\"curb\":100}."
          },
          {
            "name": "width",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 1.5
            },
            "description": "Sidewalk width. Unit: m or ft. Used when element=walk."
          },
          {
            "name": "thickness",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 125
            },
            "description": "Sidewalk thickness. Unit: mm. Used when element=walk."
          },
          {
            "name": "curb_height",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 450
            },
            "description": "Curb height. Unit: mm. Used when element=curb."
          },
          {
            "name": "curb_width",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 150
            },
            "description": "Average curb width. Unit: mm. Used when element=curb."
          },
          {
            "name": "gutter_width",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 500
            },
            "description": "Gutter width, 0 for curb only. Unit: mm. Used when element=curb."
          },
          {
            "name": "gutter_thickness",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 150
            },
            "description": "Gutter thickness. Unit: mm. Used when element=curb."
          },
          {
            "name": "waste",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 7
            },
            "description": "Waste allowance. Unit: percent."
          },
          {
            "name": "truck",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 8
            },
            "description": "Ready-mix truck capacity. Unit: m3."
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The result with its source, limits and a link to the tool page and the free quote form",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing, not a number, or not an allowed value; the body lists the accepted parameters",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/accessible-parking-calculator": {
      "get": {
        "operationId": "accessibleParkingCalculator",
        "summary": "Accessible Parking and Line Striping Calculator",
        "description": "Minimum accessible parking spaces for a new or redeveloped Ontario lot under Ontario Regulation 191/11 section 80.36, the Type A and Type B split, access aisles and painted stall line length. Same numbers as the tool page https://harrowgategroup.com/accessible-parking-calculator/. Every parameter is optional and has a default. Example: https://harrowgategroup.com/api/tools/accessible-parking-calculator?spaces=85&rows=4&stall_length=5.5&units=m",
        "parameters": [
          {
            "name": "spaces",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 85
            },
            "description": "Total number of parking spaces in the lot."
          },
          {
            "name": "rows",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 4
            },
            "description": "Rows of stalls, used for the stall line length."
          },
          {
            "name": "stall_length",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 5.5
            },
            "description": "Stall length. Use the dimension from your municipal zoning by-law. Unit: m or ft."
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "m",
                "ft"
              ],
              "default": "m"
            },
            "description": "Units for stall length."
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The result with its source, limits and a link to the tool page and the free quote form",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing, not a number, or not an allowed value; the body lists the accepted parameters",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/gravel-and-granular-base-calculator": {
      "get": {
        "operationId": "gravelAndGranularBaseCalculator",
        "summary": "Gravel and Granular Base Calculator",
        "description": "Tonnes, cubic metres, truck loads and the number of compaction lifts for a Granular A or Granular B base, using the 150 mm lift limit in Toronto standard specification TS 501. Same numbers as the tool page https://harrowgategroup.com/gravel-and-granular-base-calculator/. Every parameter is optional and has a default. Example: https://harrowgategroup.com/api/tools/gravel-and-granular-base-calculator?material=granular_a&units=m&length=20&width=6&depth=300&depth_unit=mm",
        "parameters": [
          {
            "name": "material",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "granular_a",
                "granular_b"
              ],
              "default": "granular_a"
            },
            "description": "Granular A (base course) or Granular B (subbase), as named in OPSS.MUNI 1010."
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "m",
                "ft"
              ],
              "default": "m"
            },
            "description": "Units for length and width."
          },
          {
            "name": "length",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 20
            },
            "description": "Length of the area. Unit: m or ft."
          },
          {
            "name": "width",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 6
            },
            "description": "Width of the area. Unit: m or ft."
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 300
            },
            "description": "Finished (compacted) depth of the granular layer. Unit: mm or in."
          },
          {
            "name": "depth_unit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "mm",
                "in"
              ],
              "default": "mm"
            },
            "description": "Unit for depth."
          },
          {
            "name": "density",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 1770
            },
            "description": "Weight per cubic metre used to convert volume to tonnes. The default is the federal stone conversion of 1.77 tonnes per cubic metre. Use your supplier's figure when you have it. Unit: kg/m3."
          },
          {
            "name": "allowance",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 0
            },
            "description": "Extra material for compaction loss, uneven subgrade and waste. Set it from your supplier or engineer; the default is 0. Unit: percent."
          },
          {
            "name": "truck",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 18
            },
            "description": "Payload of one truck load. 18 is an example; enter your hauler's figure. Unit: tonnes."
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The result with its source, limits and a link to the tool page and the free quote form",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing, not a number, or not an allowed value; the body lists the accepted parameters",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/parking-lot-striping-and-stall-layout-calculator": {
      "get": {
        "operationId": "parkingLotStripingAndStallLayoutCalculator",
        "summary": "Parking Lot Striping and Stall Layout Calculator",
        "description": "Stalls per row, rows, total stalls, painted stall line length and the minimum accessible spaces for a lot, using the stall sizes and drive aisle widths in Toronto Zoning By-law 569-2013 and the accessible count in Ontario Regulation 191/11. Same numbers as the tool page https://harrowgategroup.com/parking-lot-striping-and-stall-layout-calculator/. Every parameter is optional and has a default. Example: https://harrowgategroup.com/api/tools/parking-lot-striping-and-stall-layout-calculator?units=m&lot_width=60&lot_depth=40&angle=90",
        "parameters": [
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "m",
                "ft"
              ],
              "default": "m"
            },
            "description": "Units for the lot width and depth."
          },
          {
            "name": "lot_width",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 60
            },
            "description": "Length of one row of stalls, measured along the drive aisle. Unit: m or ft."
          },
          {
            "name": "lot_depth",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 40
            },
            "description": "Depth of the paved area, measured across the rows of stalls. Unit: m or ft."
          },
          {
            "name": "angle",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "enum": [
                90,
                75,
                60,
                45
              ],
              "default": 90
            },
            "description": "Stall angle to the drive aisle in degrees. 90 is perpendicular."
          },
          {
            "name": "stall_length",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 5600
            },
            "description": "Stall length along the stall. The default is the 5.6 m minimum in By-law 569-2013 section 200.5.1.10(2). Unit: mm."
          },
          {
            "name": "stall_width",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Stall width across the stall. If left out, 2,600 mm is used with a 6.0 m aisle and 2,900 mm with a narrower aisle, as in section 200.5.1.10(2)(A) and (B). Unit: mm."
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The result with its source, limits and a link to the tool page and the free quote form",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing, not a number, or not an allowed value; the body lists the accepted parameters",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/concrete-slab-thickness-and-reinforcing-guide": {
      "get": {
        "operationId": "concreteSlabThicknessAndReinforcingGuide",
        "summary": "Concrete Slab Thickness, Joints and Reinforcing Guide",
        "description": "Minimum slab thickness, subbase, joint spacing, joint depth and reinforcing notes for a walk, patio, driveway, parking lot or truck pad, from published ready-mix concrete association guidance. Same numbers as the tool page https://harrowgategroup.com/concrete-slab-thickness-and-reinforcing-guide/. Every parameter is optional and has a default. Example: https://harrowgategroup.com/api/tools/concrete-slab-thickness-and-reinforcing-guide?use=driveway_car&subgrade=firm&units=m&length=6&width=4",
        "parameters": [
          {
            "name": "use",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "walk_patio",
                "driveway_car",
                "driveway_heavy",
                "parking_lot",
                "truck_pad"
              ],
              "default": "driveway_car"
            },
            "description": "walk_patio, driveway_car (passenger vehicles), driveway_heavy (delivery vehicles or other heavy loads), parking_lot or truck_pad."
          },
          {
            "name": "subgrade",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "firm",
                "unstable"
              ],
              "default": "firm"
            },
            "description": "Firm, or unstable, organic or uncompacted material under the slab."
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "m",
                "ft"
              ],
              "default": "m"
            },
            "description": "Units for slab length and width."
          },
          {
            "name": "length",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 6
            },
            "description": "Slab length. Unit: m or ft."
          },
          {
            "name": "width",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 4
            },
            "description": "Slab width. Unit: m or ft."
          },
          {
            "name": "thickness",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Slab thickness. Leave out to use the minimum for the use. Parking lots and truck pads have no minimum here; enter the thickness your engineer designs. Unit: mm."
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The result with its source, limits and a link to the tool page and the free quote form",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing, not a number, or not an allowed value; the body lists the accepted parameters",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/snow-load-and-snow-removal-volume-calculator": {
      "get": {
        "operationId": "snowLoadAndSnowRemovalVolumeCalculator",
        "summary": "Snow Removal Volume, Weight and Pile Footprint Calculator",
        "description": "Cubic metres, weight and truck loads of snow from a lot area and snow depth, with the footprint and base width of a snow pile of a chosen height. Same numbers as the tool page https://harrowgategroup.com/snow-load-and-snow-removal-volume-calculator/. Every parameter is optional and has a default. Example: https://harrowgategroup.com/api/tools/snow-load-and-snow-removal-volume-calculator?units=m&area=2000&depth=15&depth_unit=cm&snow_type=average&truck=15&pile_height=3",
        "parameters": [
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "m",
                "ft"
              ],
              "default": "m"
            },
            "description": "Units for area and pile height. Area is square metres or square feet."
          },
          {
            "name": "area",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Area to be cleared. Unit: m2 or sq ft. Default depends on units: {\"m\":2000,\"ft\":20000}."
          },
          {
            "name": "depth",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 15
            },
            "description": "Depth of snow to be cleared. Unit: cm or in."
          },
          {
            "name": "depth_unit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "cm",
                "in"
              ],
              "default": "cm"
            },
            "description": "Unit for depth."
          },
          {
            "name": "snow_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "light",
                "average",
                "heavy",
                "compacted"
              ],
              "default": "average"
            },
            "description": "light 70 kg/m3, average 95, heavy 110, compacted 350."
          },
          {
            "name": "volume_factor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 1
            },
            "description": "Multiplier on the fallen volume for plowed or loosened snow. 1 means the same volume as fallen. Set it from your contractor's experience."
          },
          {
            "name": "truck",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 15
            },
            "description": "Volume of one truck load. 15 is an example; enter your hauler's figure. Unit: m3."
          },
          {
            "name": "pile_height",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "Height of the snow pile on site. Unit: m or ft. Default depends on units: {\"m\":3,\"ft\":10}."
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The result with its source, limits and a link to the tool page and the free quote form",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing, not a number, or not an allowed value; the body lists the accepted parameters",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/excess-soil-tracker-and-reuse-site-checker": {
      "get": {
        "operationId": "excessSoilTrackerAndReuseSiteChecker",
        "summary": "Excess Soil Rules and Record-Keeping Checker",
        "description": "Which parts of Ontario Regulation 406/19 apply to a soil removal project or a reuse site, and the records to keep, based on soil volume, past land use and where the soil is going. Same numbers as the tool page https://harrowgategroup.com/excess-soil-tracker-and-reuse-site-checker/. Every parameter is optional and has a default. Example: https://harrowgategroup.com/api/tools/excess-soil-tracker-and-reuse-site-checker?role=project_leader&volume=3000&settlement=yes&enhanced=no&remediation=no&land_use=other&pca=no&destination=reuse_site",
        "parameters": [
          {
            "name": "role",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "project_leader",
                "reuse_site"
              ],
              "default": "project_leader"
            },
            "description": "project_leader (the person responsible for the project that excavates the soil) or reuse_site (the owner or operator receiving excess soil)."
          },
          {
            "name": "volume",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 500
            },
            "description": "Cubic metres of soil to be removed from the project area (project_leader) or expected to be deposited for final placement at the reuse site (reuse_site). Unit: m3."
          },
          {
            "name": "settlement",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "yes",
                "no"
              ],
              "default": "yes"
            },
            "description": "Is any part of the project area in an area of settlement under the Planning Act? Used when role=project_leader."
          },
          {
            "name": "enhanced",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "no",
                "yes",
                "unknown"
              ],
              "default": "no"
            },
            "description": "Is any part of the project area, or has it ever been, used for an industrial use, as a garage, as a bulk liquid dispensing facility including a gasoline outlet, or for dry cleaning equipment? Used when role=project_leader."
          },
          {
            "name": "remediation",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "no",
                "yes"
              ],
              "default": "no"
            },
            "description": "Is the primary purpose of the project to remediate contaminated land? Used when role=project_leader."
          },
          {
            "name": "urgent",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "no",
                "yes"
              ],
              "default": "no"
            },
            "description": "Is the soil being excavated because of danger to health or safety, serious risk to the natural environment or to property, an order of an authority, or to maintain infrastructure in a fit state of repair? Used when role=project_leader."
          },
          {
            "name": "land_use",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "res_park_inst",
                "agri_other",
                "other"
              ],
              "default": "other"
            },
            "description": "Use of the whole project area as defined in Ontario Regulation 153/04: res_park_inst (residential, parkland or institutional, or a mix), agri_other (agricultural or other) or other (anything else, such as commercial). Used when role=project_leader."
          },
          {
            "name": "pca",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "no",
                "yes",
                "unknown"
              ],
              "default": "no"
            },
            "description": "Has an assessment of past uses or a phase one environmental site assessment identified a potentially contaminating activity? Used when role=project_leader."
          },
          {
            "name": "known_discharge",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "no",
                "yes"
              ],
              "default": "no"
            },
            "description": "Is any part of the project area known to be affected by the discharge of a contaminant? Used when role=project_leader."
          },
          {
            "name": "destination",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "reuse_site",
                "class1",
                "landfill",
                "unknown"
              ],
              "default": "reuse_site"
            },
            "description": "Where the soil is going: reuse_site, class1 (a soil bank storage or soil processing site), landfill (a landfilling site or dump) or unknown. Used when role=project_leader."
          },
          {
            "name": "reuse_land_use",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "agri_other",
                "other"
              ],
              "default": "other"
            },
            "description": "If the soil is going to a reuse site: is that site an agricultural or other use (agri_other) under Ontario Regulation 153/04, or something else (other)? Used when role=project_leader."
          },
          {
            "name": "instrument",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "no",
                "yes"
              ],
              "default": "no"
            },
            "description": "Is the reuse site governed by a site-specific instrument such as a municipal fill permit, a by-law, an Aggregate Resources Act licence or a Planning Act approval? Used when role=reuse_site."
          },
          {
            "name": "infrastructure",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "no",
                "yes"
              ],
              "default": "no"
            },
            "description": "Is the reuse site part of an undertaking related to an infrastructure project? Used when role=reuse_site."
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The result with its source, limits and a link to the tool page and the free quote form",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing, not a number, or not an allowed value; the body lists the accepted parameters",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/retaining-wall-block-and-backfill-calculator": {
      "get": {
        "operationId": "retainingWallBlockAndBackfillCalculator",
        "summary": "Segmental Retaining Wall Block and Backfill Worksheet",
        "description": "Blocks, capstones, leveling pad stone, drainage stone and truck loads for a segmental retaining wall, from the wall length and height and the block size you enter. Same numbers as the tool page https://harrowgategroup.com/retaining-wall-block-and-backfill-calculator/. Every parameter is optional and has a default. Example: https://harrowgategroup.com/api/tools/retaining-wall-block-and-backfill-calculator?units=m&length=10&height=1&size_units=mm&block_length=450&block_height=200&buried=1",
        "parameters": [
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "m",
                "ft"
              ],
              "default": "m"
            },
            "description": "Units for wall length and exposed height."
          },
          {
            "name": "length",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 10
            },
            "description": "Wall length measured along the face. Unit: m or ft."
          },
          {
            "name": "height",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 1
            },
            "description": "Exposed face height from finished grade at the bottom to the top of the wall, capstone included. Unit: m or ft."
          },
          {
            "name": "size_units",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "mm",
                "in"
              ],
              "default": "mm"
            },
            "description": "Units for block, capstone, pad and drainage dimensions."
          },
          {
            "name": "block_length",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 450
            },
            "description": "Face length of one block along the wall. Use the size printed on your block supplier's data sheet. Unit: mm or in."
          },
          {
            "name": "block_height",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 200
            },
            "description": "Height of one block. Unit: mm or in."
          },
          {
            "name": "buried",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 1
            },
            "description": "Courses buried below finished grade. Take this from the block manufacturer's guide or the engineer; the default of 1 is an example. Unit: courses."
          },
          {
            "name": "capstone",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "yes",
                "no"
              ],
              "default": "yes"
            },
            "description": "yes: the top course is capstones. no: every course is a wall block."
          },
          {
            "name": "cap_length",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 450
            },
            "description": "Length of one capstone along the wall. Unit: mm or in."
          },
          {
            "name": "pad_width",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 600
            },
            "description": "Width of the leveling pad of granular stone under the wall. The default is an example; use the manufacturer's or engineer's figure. Unit: mm or in."
          },
          {
            "name": "pad_thickness",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 150
            },
            "description": "Compacted thickness of the leveling pad. The default is an example. Unit: mm or in."
          },
          {
            "name": "drain_width",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 300
            },
            "description": "Width of the drainage stone behind the wall. The default is an example. Unit: mm or in."
          },
          {
            "name": "density",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 1770
            },
            "description": "Weight per cubic metre of the stone. The default is the federal stone conversion of 1.77 tonnes per cubic metre; use your supplier's figure when you have it. Unit: kg/m3."
          },
          {
            "name": "allowance",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 0
            },
            "description": "Extra for breakage, cuts and stone loss. Set it from your supplier or engineer; the default is 0. Unit: percent."
          },
          {
            "name": "truck",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 18
            },
            "description": "Payload of one truck load. 18 is an example; enter your hauler's figure. Unit: tonnes."
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The result with its source, limits and a link to the tool page and the free quote form",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing, not a number, or not an allowed value; the body lists the accepted parameters",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/interlock-paver-calculator": {
      "get": {
        "operationId": "interlockPaverCalculator",
        "summary": "Interlock Paver, Base and Bedding Sand Takeoff",
        "description": "Pavers, square metres to order, edge restraint length, granular base and bedding sand for a rectangular interlock area, from the paver size, joint width and layer thicknesses you enter. Same numbers as the tool page https://harrowgategroup.com/interlock-paver-calculator/. Every parameter is optional and has a default. Example: https://harrowgategroup.com/api/tools/interlock-paver-calculator?units=m&length=12&width=6&size_units=mm&paver_length=200&paver_width=100&joint=3",
        "parameters": [
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "m",
                "ft"
              ],
              "default": "m"
            },
            "description": "Units for the length and width of the paved area."
          },
          {
            "name": "length",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 12
            },
            "description": "Length of the rectangular paved area. Unit: m or ft."
          },
          {
            "name": "width",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 6
            },
            "description": "Width of the rectangular paved area. Unit: m or ft."
          },
          {
            "name": "size_units",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "mm",
                "in"
              ],
              "default": "mm"
            },
            "description": "Units for paver and layer dimensions."
          },
          {
            "name": "paver_length",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 200
            },
            "description": "Paver length from your supplier data sheet. Unit: mm or in."
          },
          {
            "name": "paver_width",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 100
            },
            "description": "Paver width from your supplier data sheet. Unit: mm or in."
          },
          {
            "name": "joint",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 3
            },
            "description": "Joint width allowed between pavers. The default is an example; use the figure in the paver supplier or engineer specification. Unit: mm or in."
          },
          {
            "name": "cut_allowance",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 0
            },
            "description": "Extra pavers for cuts and breakage. Set it from your supplier or installer; the default is 0. Unit: percent."
          },
          {
            "name": "base_depth",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 300
            },
            "description": "Compacted granular base thickness. The default is an example; the design depth comes from the engineer or municipality for the traffic the surface carries. Unit: mm or in."
          },
          {
            "name": "sand_depth",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 25
            },
            "description": "Bedding sand thickness after screeding. The default is an example; use the paver manufacturer or engineer figure. Unit: mm or in."
          },
          {
            "name": "density",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 1770
            },
            "description": "Weight per cubic metre of the base stone. The default is the federal stone conversion of 1.77 tonnes per cubic metre; use your supplier scale ticket figure. Unit: kg/m3."
          },
          {
            "name": "allowance",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 0
            },
            "description": "Extra base and sand for compaction and loss. Set it from your supplier or engineer; the default is 0. Unit: percent."
          },
          {
            "name": "truck",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "default": 18
            },
            "description": "Payload of one truck load of base stone. 18 is an example; enter your hauler figure. Unit: tonnes."
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The result with its source, limits and a link to the tool page and the free quote form",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing, not a number, or not an allowed value; the body lists the accepted parameters",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}