Get all operated stations as Riga (bus station)
, Berlin
or Warsaw 01 (Zachodnia)
. Returns a Promise that will resolve in an array of station
s in the Friendly Public Transport Format.
const ecolines = require('@juliuste/ecolines')
ecolines.stations()
.then(console.log)
.catch(console.error)
[
{
type: "station",
id: "569",
name: "Vienna",
regions: [
"569"
],
location: {
type: "location",
country: "AT",
longitude: 16.422189474105835,
latitude: 48.21078998674276,
timezone: "Europe/Vienna"
},
description: "Stadion Center (Busterminal), Olimpiaplatz 2 (Engerthstr.) "
},
{
type: "station",
id: "63",
name: "Baranovichi",
regions: [
"63"
],
location: {
type: "location",
country: "BY",
longitude: 26.04413151741028,
latitude: 53.131523573443594,
timezone: "Europe/Minsk"
},
description: "Bus Station (Avtovokzal) on 40 Frolenkova str."
},
{
type: "station",
id: "100",
name: "Warsaw 01 (Zachodnia)",
regions: [
"100"
],
location: {
type: "location",
country: "PL",
longitude: 20.963255167007446,
latitude: 52.21792110715475,
timezone: "Europe/Warsaw"
},
description: "Bus Station (Dworzec PKS) \"Zachodnia\", 144 Al. Jerozolimskie str., platform 11 "
},
{
type: "station",
id: "948",
name: "Warsaw 02 (Centralna)",
regions: [
"100"
],
location: {
type: "location",
country: "PL",
longitude: 21.00133180618286,
latitude: 52.2293010190079,
timezone: "Europe/Warsaw"
},
description: "Central Rail Station (Dworzec Centralny 04) on Al. Jana Pawla II str."
}
// …
]