https://github.com/derhuerst/identify-bvg-shuttle-stops
Identify stops from recorded positions of the BVG autonomous shuttle.
https://github.com/derhuerst/identify-bvg-shuttle-stops
berlin bvg public-transport transit
Last synced: 4 months ago
JSON representation
Identify stops from recorded positions of the BVG autonomous shuttle.
- Host: GitHub
- URL: https://github.com/derhuerst/identify-bvg-shuttle-stops
- Owner: derhuerst
- License: isc
- Created: 2018-04-15T22:37:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-17T10:43:32.000Z (about 7 years ago)
- Last Synced: 2025-01-07T19:13:26.975Z (5 months ago)
- Topics: berlin, bvg, public-transport, transit
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# identify-bvg-shuttle-stops
**Identify stops from [recorded positions of the BVG autonomous shuttle](https://cloud.innoz.de/index.php/s/BE8EJsFpImUtq1q).**
[](https://www.npmjs.com/package/identify-bvg-shuttle-stops)
[](https://travis-ci.org/derhuerst/identify-bvg-shuttle-stops)

[](https://gitter.im/derhuerst)
[](https://patreon.com/derhuerst)## Installing
```shell
npm install identify-bvg-shuttle-stops
```## Usage
```js
const csvParser = require('csv-parser')
const findStops = require('identify-bvg-shuttle-stops')
const {findStopovers} = findStopsconst done = (stops) => {
console.log(stops)
}process.stdin,
.pipe(csvParser({separator: ';'}))
.pipe(findStopovers())
.pipe(findStops(done))
``````shell
cat vehicle_states.csv | node index.js
``````js
[
{latitude: 52.48216376880161, longitude: 13.357211926989104},
{latitude: 52.482483875306386, longitude: 13.35751598641926},
{latitude: 52.4817017355642, longitude: 13.356620222708647},
{latitude: 52.482472467369995, longitude: 13.357291935350002},
{latitude: 52.48267806617778, longitude: 13.357537696744444},
{latitude: 52.48255858655, longitude: 13.357398499350001},
{latitude: 52.4822292764, longitude: 13.3569638034},
{latitude: 52.48161299, longitude: 13.3568944008},
{latitude: 52.48224300732858, longitude: 13.35733493442857},
{latitude: 52.48137507725, longitude: 13.356708429200001},
{latitude: 52.4818917553, longitude: 13.3565476968},
{latitude: 52.4819968924, longitude: 13.356677952750001},
{latitude: 52.4817106127, longitude: 13.3570866586},
{latitude: 52.481943223150004, longitude: 13.3573785506},
{latitude: 52.481770648799994, longitude: 13.356488525100001},
{latitude: 52.48208482255, longitude: 13.35739284525}
]
```## Contributing
If you have a question or have difficulties using `identify-bvg-shuttle-stops`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to [the issues page](https://github.com/derhuerst/identify-bvg-shuttle-stops/issues).