thetrainline.com
Suggest Trainline stations and cities
Automatically suggest Trainline stations and cities on thetrainline.com. Look up stations and cities on Trainline by name, as its From and To fields suggest them while you type, in Trainline's own order. Returns each place's name, type (station or city), country code and Trainline code, which thetrainline.com/search_journeys takes as origin and destination. Trainline's matching is loose: a name it does not know can still bring up an unrelated place, so check the names before you search. A text Trainline has no suggestion for returns an empty list.
Input
query requiredA station or city name, as you would type it in Trainline's From field, e.g. 'Munich' or 'Paris Gare de Lyon'.
Output
locations requiredTrainline's suggestions, in its order. Empty when it has none.
FAQ
Look up stations and cities on Trainline by name, as its From and To fields suggest them while you type, in Trainline's own order. Returns each place's name, type (station or city), country code and Trainline code, which thetrainline.com/search_journeys takes as origin and destination. Trainline's matching is loose: a name it does not know can still bring up an unrelated place, so check the names before you search. A text Trainline has no suggestion for returns an empty list.
Ask an AI agent connected to Reduck to run reduck/thetrainline.com/suggest_locations, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/thetrainline.com/suggest_locations
You do not need one. "Suggest Trainline stations and cities" drives the real thetrainline.com pages in a browser, so it works whether or not thetrainline.com offers an API for this.
Required: query.
It returns locations.
No. It only uses pages of thetrainline.com that are reachable without signing in.
It only reads. It looks things up on thetrainline.com and changes nothing there.
Ask an AI agent connected to Reduck to run reduck/thetrainline.com/suggest_locations, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/thetrainline.com/suggest_locations
It is part of Reduck's official curated catalogue.
