{
  "id": "route-lengths",
  "name": "Route lengths & cable quantities (sample plugin)",
  "version": "1.0.0",
  "author": "WHT Technology",
  "builtin": true,
  "description": "Sample extension for developers: Measures every line (cable, pipe, road, fence), adds length fields and a cable quantity with slack, and summarises by category.",
  "entry": "/extensions/route-lengths/index.html",
  "permissions": [
    "gis.read",
    "gis.write",
    "ui.notify"
  ],
  "gis_tools": [
    {
      "id": "routelen",
      "name": "Route lengths & quantities",
      "cat": "Sample plugins",
      "desc": "Line layer → length_m per feature, cable length with slack %, summary per category field.",
      "params": [
        {
          "k": "layer",
          "label": "Line layer",
          "type": "layer"
        },
        {
          "k": "slack",
          "label": "Slack / sag allowance %",
          "type": "num",
          "def": 3
        },
        {
          "k": "field",
          "label": "Category field (optional)",
          "type": "field",
          "of": "layer",
          "optional": true
        }
      ]
    }
  ],
  "scope": "all"
}