Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v6.1.0 (2026-09-12)

* Add GTFS data caching [#209](https://github.com/gerardcl/renfe-cli/issues/209)
* Add transfer infos [#208](https://github.com/gerardcl/renfe-cli/issues/208)

## v6.0.0 (2026-09-08)

* General maintenance and improvements on GTFS data handling and algorithms [#206](https://github.com/gerardcl/renfe-cli/issues/206)
Expand Down
60 changes: 60 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ pyo3 = { version = "0.29", features = ["abi3-py310"] }
getopts = "0.2.24"
chrono = "0.4.45"
gtfs-structures = { version = "0.50", default-features = false }
jiff = "0.2.35"
jiff = { version = "0.2.35", features = ["serde"] }
reqwest = { version = "0.13", default-features = false, features = ["blocking", "rustls"] }
serde = { version = "1.0", features = ["derive"] }
bincode = "1.3"
directories = "6.0"
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,22 @@ Destination station: Estación de tren Tres Cantos (apt)
===========================================================
```

Journeys with connections include the details of every transfer directly
below the timetable row. The arrival and departure are the times at which the
transfer starts and ends; the duration is the total time available to change
trains. Transfers between different stops show both station names:

```text
Transfer 1 at Madrid-Chamartín: arrive 10:05, depart 10:20 (00:15)
Transfer 2 at Madrid-Atocha → Madrid-Puerta de Atocha: arrive 10:45, depart 11:10 (00:25)
```

Downloaded feeds are converted to routing data and cached in the operating
system's user cache directory. On later runs, `renfe-cli` sends Renfe the
stored HTTP `ETag`; when the feed has not changed, Renfe returns `304 Not
Modified` and the processed data is loaded directly from the local cache.
Set `RENFE_CLI_CACHE_DIR` to use a custom cache location.

## Usage (Library)

`renfe-cli` can be imported as a python package into your project, offering utilities when willing to deal with the Renfe search web site.
Expand Down
Loading