Capitaine Train sells train tickets for many operators across Europe.
This file contains all informations we use to identify a station in any system of the carriers.
If you want to contribute to this database, please read CONTRIBUTING.md
.
The file stations.csv
is distributed under the ODbL licence (see LICENCE.txt
). In short,
any modification to this data source must be published.
Data sources include Openstreetmap and SNCF OpenData that are under ODbL or compatible and a lot of sweat, tears and blood.
The file stations.csv
contains all our data representing stations. Here is an explanation of the columns:
id
: our internal unique identifiername
: the name of the station as it is locally known (seeinfo_*
for translations)slug
: it is guaranteed to be unique across all the suggestable stations (seeis_suggestable
)uic
: the UIC code of the stationuic8_sncf
: the SNCF sometimes uses an UIC code with 8 digits instead of 7. The last digit is a checksumlongitude
,latitude
: coordinates as decimals valuesparent_station_id
: a station might belong to a meta station whoseid
is this value. For instance Paris Gare d’Austerlitz belongs to the metastation Parisis_city
,is_main_station
: this value is not reliablecountry
: 2 letter ISO codetimezone
: as [Continent]/[country] ISO codeis_suggestable
: can the user input this station[carrier]_id
: the id of the station as it is known by the carrier[carrier]_is_enabled
: can a ticket be booked to/from the station through that carrierinfo:[lang]
: extra information that is useful in the specific languagesame_as
: in some systems, a station can be split in two, with twoid
. If this value is set, the station pointed by that value should be considered as the actual station
bundle install
ruby test_data.rb