Skip to content
HALOWERK

Mobility, Warnings and Local Data

wgs84 bounded leg nearest point

Geodesic projection returns the nearest regional leg point and its distance. Use it when an agent needs a nearest station on a regional segment.

POST https://ort.halowerk.com/v1/wgs84-bounded-leg-nearest-point

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
lat1numberYes
lon1numberYes
lat2numberYes
lon2numberYes
locationobjectYes
Show full input schema
{
  "type": "object",
  "properties": {
    "lat1": {
      "type": "number",
      "minimum": -90,
      "maximum": 90
    },
    "lon1": {
      "type": "number",
      "minimum": -180,
      "maximum": 180
    },
    "lat2": {
      "type": "number",
      "minimum": -90,
      "maximum": 90
    },
    "lon2": {
      "type": "number",
      "minimum": -180,
      "maximum": 180
    },
    "location": {
      "type": "object",
      "properties": {
        "lat": {
          "type": "number",
          "minimum": -90,
          "maximum": 90
        },
        "lon": {
          "type": "number",
          "minimum": -180,
          "maximum": 180
        }
      },
      "required": [
        "lat",
        "lon"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "lat1",
    "lon1",
    "lat2",
    "lon2",
    "location"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "lat1": 52.3676,
  "lon1": 4.9041,
  "lat2": 48.8566,
  "lon2": 2.3522,
  "location": {
    "lat": 50.8503,
    "lon": 4.3517
  }
}

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