Skip to content
HALOWERK

Mobility, Warnings and Local Data

wgs84 waypoint minimum detour insertion

Route insertion returns the leg with the least extra distance for a new stop. Use it when an agent needs to insert a planned stop into a fixed waypoint order.

POST https://ort.halowerk.com/v1/wgs84-waypoint-minimum-detour-insertion

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
pointsarrayYes
viaobjectYes
Show full input schema
{
  "type": "object",
  "properties": {
    "points": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "lat": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "lon": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          }
        },
        "required": [
          "lat",
          "lon"
        ],
        "additionalProperties": false
      },
      "maxItems": 24,
      "minItems": 2
    },
    "via": {
      "type": "object",
      "properties": {
        "lat": {
          "type": "number",
          "minimum": -90,
          "maximum": 90
        },
        "lon": {
          "type": "number",
          "minimum": -180,
          "maximum": 180
        }
      },
      "required": [
        "lat",
        "lon"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "points",
    "via"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "points": [
    {
      "lat": 52.3676,
      "lon": 4.9041
    },
    {
      "lat": 50.8503,
      "lon": 4.3517
    },
    {
      "lat": 48.8566,
      "lon": 2.3522
    }
  ],
  "via": {
    "lat": 51.22,
    "lon": 4.4
  }
}

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 โ†’