README.md in gares-1.1.1 vs README.md in gares-2.0.0.pre.dev
- old
+ new
@@ -20,47 +20,47 @@
### Station:
g = Gares::Station.new("frlpd")
g.name
- #=> "Lyon Part Dieu"
+ #=> "Lyon Part-Dieu"
g.wifi?
#=> true
g.has_borne?
#=> true
g.services.first
#=> "Services à la clientèle"
- [g.lat, g.long]
+ [g.latitude, g.longitude]
#=> [45.760281, 4.859801]
See the [`Gares::Base` class documentation](http://www.rubydoc.info/github/paulrbr/gares/master/Gares/Base) for all available data on a station.
### Searching:
g = Gares::Search.new("Aix")
g.stations.size
- #=> 7
+ #=> 28
# or
stations = Gares::Station.search("lyon")
station = stations.last
station.name
- #=> "Paris Gare de Lyon"
+ #=> "Aéroport-Lyon-Saint-Exupéry"
### Train information:
train = Gares::Train.new(11641, Time.now)
train.departure.station
- #=> #<Gares::Station:0x000f0000000000 @slug="frpst", @name="Paris Est">
+ #=> #<Gares::Station:0x000f0000000000 @name="Paris-Gare-de-l’Est", ...>
train.departure.departure_date
#=> 2015-04-25 06:42:00 +0200
train.stops.size
@@ -68,11 +68,11 @@
train.delayed?
#=> false
train.arrival.station.name
- #=> "Culmont - Chalindrey"
+ #=> "Culmont-Chalindrey"
train.arrival.platform
#=> "B"
See the [`Gares::Train` class documentation](http://www.rubydoc.info/github/paulrbr/gares/master/Gares/Train) for all available data on a train.
@@ -130,5 +130,7 @@
_This gem is not endorsed or affiliated with gares-en-mouvement.com, nor SNCF, Inc._
## License
See [MIT-LICENSE](https://github.com/paulrbr/gares/blob/master/MIT-LICENSE)
+
+Station database [ODbL LICENSE](https://raw.githubusercontent.com/capitainetrain/stations/master/LICENCE.txt)