Releases: paulRbr/gares
Chase the bugs
Minor changes from 2.0.0
-
TVS codes are trimmed to the first word available (
PNO PNO_TRANS
returnsPNO
as a TVS code) -
#departure
and#arrival
methods on theTrain
object returnsStation
objects without doing any call to sncf.com when called from#departing_trains
or#arriving_trains
from aStation
.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
TL;DR
- gares-en-mouvement.com is dead, long live gares-sncf.com
- performance
- live train information (delay, platform...)
What's new?
On Station
s
- No more info from gares-en-mouvement.com (the site has changed to gares-sncf.com)
- Deletes the following information on train
Station
s:opening_hours
,services
,wifi?
,defibrilator?
- Adds
departures
method onStation
s. Gives the next departing trains from that station (including platform number) - Adds
arrivals
method onStation
s. Gives the next arriving trains from that station (including platform number)
- Deletes the following information on train
- 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 Train
s
- 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
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!
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
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.