Skip to content
HALOWERK

Kartenwerk

grid weighted cost distance

Return four-neighbor least-cost distances through a supplied positive traversal-cost grid.

POST https://karte.halowerk.com/v1/grid-weighted-cost-distance

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
costsarrayYes
sourceobjectYes
cell_sizenumberYes
Show full input schema
{
  "type": "object",
  "properties": {
    "costs": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 1e-06,
          "maximum": 1000000
        },
        "maxItems": 32,
        "minItems": 1
      },
      "maxItems": 32,
      "minItems": 1
    },
    "source": {
      "type": "object",
      "properties": {
        "row": {
          "type": "integer",
          "minimum": 0,
          "maximum": 31
        },
        "col": {
          "type": "integer",
          "minimum": 0,
          "maximum": 31
        }
      },
      "required": [
        "row",
        "col"
      ],
      "additionalProperties": false
    },
    "cell_size": {
      "type": "number",
      "minimum": 1e-06,
      "maximum": 1000000
    }
  },
  "required": [
    "costs",
    "source",
    "cell_size"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "costs": [
    [
      1,
      3
    ],
    [
      1,
      1
    ]
  ],
  "source": {
    "row": 0,
    "col": 0
  },
  "cell_size": 1
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’