Matrix (`/sources_to_targets`)
URL:
POST https://valhalla.pixelmap.at/sources_to_targetsRequest-Body:
{ "sources": [ { "lat": 46.6249, "lon": 14.3050 }, // Klagenfurt { "lat": 47.0707, "lon": 15.4395 } // Graz ], "targets": [ { "lat": 48.2082, "lon": 16.3738 }, // Wien { "lat": 47.8095, "lon": 13.0550 } // Salzburg ], "costing": "auto"}Beispiel mit Curl:
curl -X POST "https://valhalla.pixelmap.at/sources_to_targets" \-H "Content-Type: application/json" \-H "Authorization: Bearer YOUR_API_TOKEN" \-d '{ "sources": [ { "lat": 46.6249, "lon": 14.3050 }, { "lat": 47.0707, "lon": 15.4395 } ], "targets": [ { "lat": 48.2082, "lon": 16.3738 }, { "lat": 47.8095, "lon": 13.0550 } ], "costing": "auto"}'