Skip to content

derhuerst/ecolines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.