Skip to content
JavaScript client for the Ecolines API.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
.editorconfig
.gitignore
.travis.yml
license.md
package.json
readme.md
test.js

readme.md

ecolines

JavaScript client for the Ecolines API.

npm version build status ISC-licensed chat on gitter

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.

You can’t perform that action at this time.