Skip to content

Releases: paulRbr/gares

Chase the bugs

09 May 14:25
Compare
Choose a tag to compare

Minor changes from 2.0.0

  • TVS codes are trimmed to the first word available (PNO PNO_TRANS returns PNO as a TVS code)

  • #departure and #arrival methods on the Train object returns Station objects without doing any call to sncf.com when called from #departing_trains or #arriving_trains from a Station.

    E.g.

    > Station.find_by_sncf_id("frlpd").departing_trains.first.departure
    => <#Station name="Lyon Part-Dieu" ..>
    

    Instead of

    > Station.find_by_sncf_id("frlpd").departing_trains.first.departure
    (... HTTP Request to sncf.com ...)
    => <#TrainStop station=<#Station name="Lyon Part-Dieu" ..> ..>
    

Complete rebirth: Gares 2.0.0

03 May 15:22
Compare
Choose a tag to compare

TL;DR

  • gares-en-mouvement.com is dead, long live gares-sncf.com
  • performance
  • live train information (delay, platform...)

What's new?

On Stations

  • No more info from gares-en-mouvement.com (the site has changed to gares-sncf.com)
    • Deletes the following information on train Stations: opening_hours, services, wifi?, defibrilator?
    • Adds departures method on Stations. Gives the next departing trains from that station (including platform number)
    • Adds arrivals method on Stations. Gives the next arriving trains from that station (including platform number)
  • Change source of train station list to the freshly open sourced database of capitainetrain
  • Adds source of self-service machines available in train stations from here. So the has_borne? method still exist!

On Trains

  • Some train numbers are used for multi-itinerary trips. We select for now always the first.

Misc

  • Complete rewrite of the search method. Perf powerup!
  • Small fixes and perf improvements in specs

Changing the station database

26 Apr 15:46
Compare
Choose a tag to compare
Pre-release

The list of train stations are now parsed from the capitainetrain.com public station database, which is now publicly available at https://github.com/capitainetrain/stations

Unleash the Trains!

25 Apr 22:45
Compare
Choose a tag to compare

The gem can now communicate with the new sncf.com live train schedules!

With this new 1.1.0 version of the gem you can search for your train 6704 departing tomorrow and instantly know:

  • it's delayed
  • you have to wait 30 minutes because of that delay
  • it will stop 3 times before arriving where you want
  • When available (approx. 18 minutes before arrival) the platform number of your departing/arriving train.

That's all folks!

Gares has hit 1.0 with a stable API

25 Apr 20:06
Compare
Choose a tag to compare

Gares is ready to retrieve data from gares-en-mouvement.com. Find information about sales or services available within a french train Station.

Major change from 0.x is the renaming of the Gare object into Station object.