Skip to content
HALOWERK

Mobility, Warnings and Local Data

wgs84 route directness excess

Route geometry returns the sum of ellipsoid legs, endpoint distance and excess distance via the waypoints. Use it when an agent needs to quantify indirectness in a supplied itinerary.

POST https://ort.halowerk.com/v1/wgs84-route-directness-excess

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
pointsarrayYes
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
    }
  },
  "required": [
    "points"
  ],
  "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
    }
  ]
}

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