# Build Your Own Trainline Alternative

- Tool: Build Your Own SaaS Alternative
- Last updated: May 2026

## TL;DR

Trainline processed £6.3B in net ticket sales in FY2026 generating £453M revenue, but UK train operator apps charge zero booking fees since 2023 while Trainline adds 59p–£2.79 per journey. A duplicate charge of £159 was documented taking three weeks without resolution. Building a custom rail ticketing platform costs £200,000–£400,000 and takes 6–9 months. TOC API integration and UK fare calculation complexity are the primary technical barriers.

## Frequently asked questions

### How much does it cost to build a Trainline alternative?

£200,000–£400,000 agency cost for a UK-only consumer rail booking platform. The cost breakdown is roughly: journey planning and schedule integration (£30K–£50K), fare calculation engine (£50K–£80K), TOC booking integration via NRD (£60K–£100K), e-ticket generation (£20K–£30K), payments and UI (£40K–£70K). RDG accreditation legal costs add £20K–£50K and 3–6 months before ticketing is possible.

### How long does it take to build a rail booking platform?

6–9 months with a team of 3–4 engineers for UK-only consumer rail booking. The critical path is RDG Retail Service Provider accreditation (3–6 months) and fare calculation engine development (8–10 weeks) — both must start as early as possible. Multi-country expansion adds 4–6 months per additional market.

### Are there open-source Trainline alternatives?

OpenTripPlanner (2.6K stars, LGPL-3.0, Java) is the best open-source routing engine for GTFS-based transit planning. transitland-lib (50 stars, GPL-3.0, Go) handles GTFS parsing. Neither provides booking, fare calculation, or e-ticket generation. No open-source UK rail ticketing stack exists — the fare calculation and NRD integration require proprietary data access.

### What is RDG accreditation and why does it matter?

Rail Delivery Group (RDG) Retail Service Provider (RSP) accreditation is the formal certification required to sell UK rail tickets commercially via the National Rail Distribution API. The process involves legal agreements with RDG, technical compliance testing against NRD API specifications, and operational capability assessment. It takes 3–6 months and costs £20K–£50K in legal and compliance fees. Without it, you cannot issue valid UK rail tickets — it is not optional.

### How does UK rail fare calculation work?

UK rail fares are governed by ATOC's Fare File Library (FFL) — a complex data format encoding hundreds of operator-specific fare rules, time-of-day restrictions, station groupings, Railcard discount eligibility, and fare validity windows. The FFL file is updated quarterly by National Rail. Building a fare engine requires parsing FFL data and implementing the complete restriction and discount logic. This is specialized domain work — budget 8–10 weeks for a fare engine covering the most common fare types.

### What is split-ticketing and should I implement it?

Split-ticketing means buying separate tickets for intermediate stations at a combined cost below the through-fare. For example, London to Edinburgh might cost £120, but London to York (£45) + York to Edinburgh (£55) = £100. Implementing split-ticketing as a default feature using a graph algorithm on the fare database creates the strongest consumer differentiation against Trainline, which does not surface this by default.

### Can RapidDev build a custom rail booking platform?

Yes — RapidDev has built 600+ apps including booking systems with complex inventory management and payment processing. We recommend starting the RDG accreditation process in parallel with scoping discussions. Contact us at rapidevelopers.com/contact to discuss the specific UK rail integration requirements.

### Is building a Trainline competitor worth it given TOC apps are now free?

Generic consumer competition is hard to justify — TOC apps charge zero booking fees and already capture direct bookings. The viable builds are: (1) split-ticketing-first with a transparent savings model, (2) corporate travel management with policy compliance, or (3) a multi-modal package builder combining rail, hotel, and experiences. All three have clear differentiation from Trainline's generic booking model.

---

Source: https://www.rapidevelopers.com/clone/trainline
© RapidDev — https://www.rapidevelopers.com/clone/trainline
