Routenberechnung (`/route`)
URL:
POST https://valhalla.pixelmap.at/routeAnfragetyp: POST mit JSON-Body.
Request-Body:
{ "locations": [ { "lat": 46.6249, "lon": 14.3050 }, { "lat": 47.0707, "lon": 15.4395 } ], "costing": "auto", "directions_options": { "language": "de-DE", "units": "kilometers" }}Hinweis: Die Route führt von Klagenfurt am Wörthersee nach Graz.
Beispiel mit Curl:
curl -X POST "https://valhalla.pixelmap.at/route" \-H "Content-Type: application/json" \-H "Authorization: Bearer YOUR_API_TOKEN" \-d '{ "locations": [ { "lat": 46.6249, "lon": 14.3050 }, { "lat": 47.0707, "lon": 15.4395 } ], "costing": "auto", "directions_options": { "language": "de-DE", "units": "kilometers" }}'