Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derhuerst/ecolines
JavaScript client for the Ecolines API.
https://github.com/derhuerst/ecolines
ecolines transit transport
Last synced: 6 days ago
JSON representation
JavaScript client for the Ecolines API.
- Host: GitHub
- URL: https://github.com/derhuerst/ecolines
- Owner: derhuerst
- License: isc
- Created: 2017-03-21T15:47:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-29T06:59:22.000Z (over 1 year ago)
- Last Synced: 2024-10-03T23:52:49.543Z (about 1 month ago)
- Topics: ecolines, transit, transport
- Language: JavaScript
- Homepage: https://github.com/derhuerst/ecolines
- Size: 22.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# ecolines
**JavaScript client for the Ecolines API.**
[![npm version](https://img.shields.io/npm/v/ecolines.svg)](https://www.npmjs.com/package/ecolines)
[![build status](https://img.shields.io/travis/derhuerst/ecolines.svg)](https://travis-ci.org/derhuerst/ecolines)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/ecolines.svg)
[![support me via GitHub Sponsors](https://img.shields.io/badge/support%20me-donate-fa7664.svg)](https://github.com/sponsors/derhuerst)
[![chat with me on Twitter](https://img.shields.io/badge/chat%20with%20me-on%20Twitter-1da1f2.svg)](https://twitter.com/derhuerst)Things still missing:
- [routes](https://github.com/public-transport/friendly-public-transport-format/blob/master/docs/readme.md#route), [schedules](https://github.com/public-transport/friendly-public-transport-format/blob/master/docs/readme.md#schedule) from [this gist](https://gist.github.com/derhuerst/c76db8e9216b686b0262857cc9abd16e)
- stations by countries, from [here](https://ecolines.net/international/en/trip/bus-stops)
- [SMS service integration](https://ecolines.net/de/de/information/sms-service)?## Installing
```shell
npm install ecolines
```## Usage
The [npm package](https://npmjs.com/ecolines) contains data in the [*Friendly Public Transport Format*](https://github.com/public-transport/friendly-public-transport-format).
```js
const stations = require('ecolines')console.log(stations['211'])
``````js
{
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](https://github.com/derhuerst/ecolines/issues).