Zum Inhalt springen
GET /v1/journey

Plan a journey A to B

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/tfl-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/tfl-api/v1/journey" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tfl-api/v1/journey", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tfl-api/v1/journey");
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/tfl-api/v1/journey",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "to": "HUBWAT",
        "from": "940GZZLUOXC",
        "count": 3,
        "journeys": [
            {
                "legs": [
                    {
                        "mode": "walking",
                        "arrival": "Oxford Circus Stn  / Margaret Street",
                        "summary": "Transfer to Oxford Circus Stn /Margaret St",
                        "departure": "Oxford Circus Station",
                        "duration_min": 1
                    },
                    {
                        "mode": "bus",
                        "arrival": "Westminster Stn  / Parliament Square",
                        "summary": "88 bus to Westminster Station / Parliament Square",
                        "departure": "Oxford Circus Stn  / Margaret Street",
                        "duration_min": 11
                    },
                    {
                        "mode": "bus",
                        "arrival": "Lower Marsh",
                        "summary": "N155 bus to Lower Marsh",
                        "departure": "Westminster Stn  / Parliament Square",
                        "duration_min": 5
                    },
                    {
                        "mode": "walking",
                        "arrival": "Lambeth, Waterloo Hub Hotel",
                        "summary": "Walk to Lambeth, Waterloo Hub Hotel",
                        "departure": "Lower Marsh",
                        "duration_min": 8
                    }
                ],
                "start": "2026-06-01T01:03:00",
                "arrival": "2026-06-01T01:31:00",
                "duration_min": 28
            },
            {
                "legs": [
                    {
                        "mode": "walking",
                        "arrival": "Oxford Circus Stn  / Margaret Street",
                        "summary": "Transfer to Oxford Circus Stn /Margaret St",
                        "departure": "Oxford Circus Station",
                        "duration_min": 1
                    },
                    {
                        "mode": "bus",
                        "arrival": "Lambeth North Station",
                        "summary": "12 bus to Lambeth North Station",
                        "departure": "Oxford Circus Stn  / Margaret Street",
                        "duration_min": 14
                    },
                    {
                        "mode": "walking",
                        "arrival": "Lambeth, Waterloo Hub Hotel",
                        "summary": "Walk to Lambeth, Waterloo Hub Hotel",
                        "departure": "Lambeth North Station",
                        "duration_min": 7
                    }
                ],
                "start": "2026-06-01T01:09:00",
                "arrival": "2026-06-01T01:31:00",
                "duration_min": 22
            },
            {
                "legs": [
                    {
                        "mode": "walking",
    
…