Skip to content
HALOWERK

Mobility, Warnings and Local Data

wgs84 polyline chainage leg index

Route chainage returns the containing leg and local coordinate for a distance along a multi-leg polyline. Use it when an agent needs to map a cumulative station onto its route segment.

POST https://ort.halowerk.com/v1/wgs84-polyline-chainage-leg-index

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
pointsarrayYes
metresnumberYes
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
    },
    "metres": {
      "type": "number",
      "minimum": 0,
      "maximum": 20000000
    }
  },
  "required": [
    "points",
    "metres"
  ],
  "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
    }
  ],
  "metres": 200000
}

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