Build a Single Page Application (SPA) using a modern frontend framework (Vue.js, Svelte, or React) that displays train connections between two cities using thetrainline.com as a data source.
Note: Candidates can either:
- Use a public Trainline API if accessible, or
- Use a local JSON file simulating real train connection data.