Naar de inhoud
GET /v1/journey

Plan a journey A to B

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/tfl-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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",
    
…