Skip to content
HALOWERK

Geodata Tools

spatial segment segment nearest

Return closest points and clamped parameters between two supplied three-dimensional segments.

POST https://geo.halowerk.com/v1/spatial-segment-segment-nearest

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
a0ReferenceYes
a1ReferenceYes
b0ReferenceYes
b1ReferenceYes
Show full input schema
{
  "type": "object",
  "properties": {
    "a0": {
      "$ref": "#/$defs/s0"
    },
    "a1": {
      "$ref": "#/$defs/s0"
    },
    "b0": {
      "$ref": "#/$defs/s0"
    },
    "b1": {
      "$ref": "#/$defs/s0"
    }
  },
  "required": [
    "a0",
    "a1",
    "b0",
    "b1"
  ],
  "additionalProperties": false,
  "$id": "urn:h:w9:G1:input",
  "$defs": {
    "s0": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/s1"
      },
      "maxItems": 3,
      "minItems": 3
    },
    "s1": {
      "type": "number",
      "minimum": -1000000,
      "maximum": 1000000
    }
  }
}

Open original schema

Published input example

{
  "a0": [
    0,
    0,
    0
  ],
  "a1": [
    1,
    0,
    0
  ],
  "b0": [
    0.5,
    1,
    0
  ],
  "b1": [
    0.5,
    -1,
    0
  ]
}

Result & documentation

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub โ†’