1.0.0 • Published 2 years ago

ecolines v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
2 years ago

ecolines

JavaScript client for the Ecolines API.

npm version build status ISC-licensed support me via GitHub Sponsors chat with me on Twitter

Things still missing:

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.