/v1/route
Driving route between points
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/routing-api/v1/route" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/routing-api/v1/route", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/routing-api/v1/route");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/routing-api/v1/route",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"profile": "driving",
"geometry": {
"type": "LineString",
"coordinates": [
[
13.387983,
52.517094
],
[
13.38576,
52.516951
],
[
13.385206,
52.520105
],
[
13.388021,
52.521765
],
[
13.387228,
52.527168
],
[
13.393668,
52.528491
],
[
13.396829,
52.52926
]
]
},
"waypoints": [
{
"name": "Unter den Linden",
"location": [
13.387983,
52.517094
]
},
{
"name": "Torstraße",
"location": [
13.396829,
52.52926
]
}
],
"distance_m": 2067,
"duration_s": 297
},
"meta": {
"timestamp": "2026-05-30T01:47:48.888Z",
"request_id": "e9d58381-5190-4a43-8a06-a8f9700931eb"
},
"status": "ok",
"message": "Route retrieved successfully",
"success": true
}