ecolines
JavaScript client for the Ecolines API.
Things still missing:
- routes, schedules from this gist
- stations by countries, from here
- SMS service integration?
Installing
npm install ecolines
Usage
The npm package contains data in the Friendly Public Transport Format.
const stations = require('ecolines')
console.log(stations['211'])
{
id: '211',
name: 'Berlin',
description: 'ZOB "Am Funkturm", Masurenallee',
country: 'DE', // ISO 3166-1 alpha-2
coordinates: {
latitude: 52.50728190225904,
longitude: 13.280174732208252
}
}
Contributing
If you have a question, found a bug or want to propose a feature, have a look at the issues page.