curl --location 'https://us-prod.notte.cc/functions/45878715-ff68-4dfd-877e-1e67b66567dc/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "45878715-ff68-4dfd-877e-1e67b66567dc",
"variables": {
"from_location_id": "station-amsterdam-centraal",
"to_location_id": "station-utrecht-centraal",
"date_time": "",
"request_type": "Departure",
"limit": 8,
"plan_with_accessibility": false,
"extra_interchange_time": 0
}
}'
{
"count": 0,
"journeys": [
{
"delay": "<string>",
"icons": [
{
"name": "<string>",
"cancelled": true
}
],
"detour": true,
"cancelled": true,
"occupancy": 0,
"operators": [
"<string>"
],
"journey_id": "<string>",
"is_complete": true,
"price_euros": 0,
"arrival_time": "<string>",
"line_numbers": [
"<string>"
],
"departure_time": "<string>",
"transport_modes": [
"<string>"
],
"price_euro_cents": 0,
"departure_real_time": "<string>",
"duration_in_minutes": 0
}
],
"to_location": {
"name": "<string>",
"place": "<string>",
"location_type": "<string>"
},
"request_type": "<string>",
"from_location": {
"name": "<string>",
"place": "<string>",
"location_type": "<string>"
},
"to_location_id": "<string>",
"from_location_id": "<string>",
"requested_date_time_utc": "<string>",
"no_journey_available_on_request_date": true
}