Trenitalia Solutions columns, generated from the actor dataset schema.
Describes build 0.1.5 of rl1987/trenitalia-timetable-scraper, deployed 2026-11-22. The column set last changed 2026-11-22. Earlier builds can return a different one.
Dataset view: solutions — ?view=solutions on the items API, or the matching tab in the Console.
21 columns, in the order the view shows them.
| # | Column | Label | Type | Description | Example |
|---|---|---|---|---|---|
| 1 | recordType | recordType | string | Which kind of row this is: solution, fare, trainStatus, stop, board or station. Each kind has its own dataset view; a column another kind does not fill is absent from these rows rather than null. | |
| 2 | solutionId | solutionId | string, nullable | Upstream solution id (a string, not a number - it is a UUID-shaped token). Unique per journey option within one search; the ledger’s de-duplication key. | |
| 3 | searchId | searchId | string, nullable | The search this solution answered, as the BFF echoed it back. Identical across the solutions of one search; useful for grouping rows back into a single run of a query. | |
| 4 | origin | origin | string, nullable | Departure station name as the API spells it (e.g. ‘Milano Centrale’). On a board row this is the train’s true origin, which may be earlier than the board station. | |
| 5 | destination | destination | string, nullable | Arrival station name as the API spells it. On a board row this is the train’s final destination, which may be beyond the board station. | |
| 6 | departureTime | departureTime | string, nullable | ISO-8601 departure of the journey, with the +01:00/+02:00 offset the API sends (e.g. ‘2026-11-21T08:00:00.000+01:00’). Not normalised to UTC. | |
| 7 | arrivalTime | arrivalTime | string, nullable | ISO-8601 arrival of the journey, same offset convention as departureTime. For a multi-leg journey this is the arrival at the final destination. | |
| 8 | duration | duration | string, nullable | Journey duration as the API formats it (‘3h 10min’), not a number of minutes. Includes the wait for changes. | |
| 9 | numberOfChanges | numberOfChanges | string, nullable | Change count as a localised string the API sends: ‘Diretto’, ‘1 Cambio’, ‘2 Cambi’. Empty on fare/stop/board rows. | |
| 10 | status | status | string, nullable | Solution sale status as the API reports it, e.g. SALEABLE. It describes sellability at scrape time, not availability on the day of travel. | |
| 11 | price | price | number, nullable | Price amount in the currency given by currency (’€’ for Italian domestic journeys), as the API sends it. A fare row inherits the solution’s amount because offerDetails carries no price of its own. | |
| 12 | currency | currency | string, nullable | Currency symbol exactly as the API sends it (’€’), not an ISO code. Paired with price on solution and fare rows. | |
| 13 | priceIsIndicative | priceIsIndicative | boolean, nullable | The API’s own price.indicative flag: true when the amount is an estimate rather than a quotable fare. Null on rows that carry no price. | |
| 14 | trainCategory | trainCategory | string, nullable | Service category as the API names it: ‘Frecciarossa’, ‘Intercity’, ‘Regionale’. On board rows it comes from trainInfo.denomination and regional services may come back as an unlocalised token such as ’label.train.info.denomination.reg’. | |
| 15 | trainNumber | trainNumber | string, nullable | Train number as a string (‘9611’). Present on every row kind except station, and the input for trainStatus mode. | |
| 16 | trainAcronym | trainAcronym | string, nullable | Short category code the API uses: FR, IC, REG, AUT (bus). | |
| 17 | trainSummary | trainSummary | string, nullable | All legs of the journey flattened into one string, ‘FR 9611 -> FR 9620’. Change count is in numberOfChanges and the leg list is not shipped as a nested object. | |
| 18 | legCount | legCount | integer, nullable | Number of legs (nodes) the solution is made of. 1 for a direct train. | |
| 19 | fareCount | fareCount | integer, nullable | How many selected offers the API returned for this solution. Same as the number of fare rows emitted for it when includeFares is on. | |
| 20 | canShowSeatMap | canShowSeatMap | boolean, nullable | The API’s own flag for whether a seat map is offered for this solution. Full seat-level maps need a live cart and are out of scope; seats left per fare are in fare rows availableSeats. | |
| 21 | canShowGrid | canShowGrid | boolean, nullable | The API’s own flag for whether a fare/class grid is offered for this solution, which also needs a live cart. Reported as the upstream says it, not probed. |