Skip to content
HALOWERK

Mobility, Warnings and Local Data

web mercator rhumb segment

Web Mercator segment measurement returns constant-bearing spherical rhumb distance and compass direction for two points. Use it when an agent needs a straight line in Mercator space.

POST https://ort.halowerk.com/v1/web-mercator-rhumb-segment

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
fromobjectYes
toobjectYes
Show full input schema
{
  "type": "object",
  "properties": {
    "from": {
      "type": "object",
      "properties": {
        "lat": {
          "type": "number",
          "minimum": -90,
          "maximum": 90
        },
        "lon": {
          "type": "number",
          "minimum": -180,
          "maximum": 180
        }
      },
      "required": [
        "lat",
        "lon"
      ],
      "additionalProperties": false
    },
    "to": {
      "type": "object",
      "properties": {
        "lat": {
          "type": "number",
          "minimum": -90,
          "maximum": 90
        },
        "lon": {
          "type": "number",
          "minimum": -180,
          "maximum": 180
        }
      },
      "required": [
        "lat",
        "lon"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "from",
    "to"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "from": {
    "lat": 52.52,
    "lon": 13.405
  },
  "to": {
    "lat": -33.8688,
    "lon": 151.2093
  }
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "distance_m": {
          "type": "number"
        },
        "bearing_deg": {
          "type": "number"
        }
      },
      "required": [
        "distance_m",
        "bearing_deg"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub โ†’