Zum Inhalt
HALOWERK

Kartenwerk

restricted route

Collects the physical and legal restrictions recorded in OpenStreetMap within a corridor around the straight line between two points, or around a single point, and decides for each one whether it stops the vehicle described in the request. The work is in reading the values. OpenStreetMap carries a height limit as a bare number, with a comma, with a unit, or in feet and inches, and it also carries none and default, which are statements about the law rather than measurements: none means no.

POST https://karte.halowerk.com/v1/restricted-route

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
fromobjectNeinStart of the corridor.
toobjectNeinEnd of the corridor. Without it, from is treated as a single point.
corridor_kmnumberNeinHalf width of the corridor, or the radius around a single point.
vehicleobjectNeinThe vehicle to judge the restrictions against. Anything omitted is not judged.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "from": {
      "type": "object",
      "required": [
        "lat",
        "lon"
      ],
      "additionalProperties": false,
      "properties": {
        "lat": {
          "type": "number",
          "minimum": -90,
          "maximum": 90
        },
        "lon": {
          "type": "number",
          "minimum": -180,
          "maximum": 180
        }
      },
      "description": "Start of the corridor."
    },
    "to": {
      "type": "object",
      "required": [
        "lat",
        "lon"
      ],
      "additionalProperties": false,
      "properties": {
        "lat": {
          "type": "number",
          "minimum": -90,
          "maximum": 90
        },
        "lon": {
          "type": "number",
          "minimum": -180,
          "maximum": 180
        }
      },
      "description": "End of the corridor. Without it, from is treated as a single point."
    },
    "corridor_km": {
      "type": "number",
      "minimum": 0.1,
      "maximum": 10,
      "default": 1,
      "description": "Half width of the corridor, or the radius around a single point."
    },
    "vehicle": {
      "type": "object",
      "additionalProperties": false,
      "description": "The vehicle to judge the restrictions against. Anything omitted is not judged.",
      "properties": {
        "height_m": {
          "type": "number",
          "minimum": 0.5,
          "maximum": 10
        },
        "width_m": {
          "type": "number",
          "minimum": 0.5,
          "maximum": 8
        },
        "length_m": {
          "type": "number",
          "minimum": 1,
          "maximum": 40
        },
        "weight_t": {
          "type": "number",
          "minimum": 0.1,
          "maximum": 250
        },
        "axleload_t": {
          "type": "number",
          "minimum": 0.1,
          "maximum": 30
        },
        "hazmat": {
          "type": "boolean",
          "description": "Carrying dangerous goods."
        }
      }
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "from": {
    "lat": 48.13,
    "lon": 11.54
  },
  "to": {
    "lat": 48.18,
    "lon": 11.62
  },
  "corridor_km": 1,
  "vehicle": {
    "height_m": 4,
    "weight_t": 18,
    "hazmat": false
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →