Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derhuerst/hafas-generate-gtfs
[work in progress] – Generate GTFS dumps from HAFAS endpoints.
https://github.com/derhuerst/hafas-generate-gtfs
gtfs hafas public-transport transit
Last synced: about 1 month ago
JSON representation
[work in progress] – Generate GTFS dumps from HAFAS endpoints.
- Host: GitHub
- URL: https://github.com/derhuerst/hafas-generate-gtfs
- Owner: derhuerst
- License: isc
- Created: 2020-03-21T12:59:31.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-30T19:04:12.000Z (over 4 years ago)
- Last Synced: 2024-10-03T23:59:32.685Z (3 months ago)
- Topics: gtfs, hafas, public-transport, transit
- Language: JavaScript
- Homepage: https://github.com/derhuerst/hafas-generate-gtfs#hafas-generate-gtfs
- Size: 18.6 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# hafas-generate-gtfs
**Generate [GTFS](https://gtfs.org/reference/static) dumps from HAFAS endpoints.**
[![npm version](https://img.shields.io/npm/v/hafas-generate-gtfs.svg)](https://www.npmjs.com/package/hafas-generate-gtfs)
[![build status](https://api.travis-ci.org/derhuerst/hafas-generate-gtfs.svg?branch=master)](https://travis-ci.org/derhuerst/hafas-generate-gtfs)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/hafas-generate-gtfs.svg)
![minimum Node.js version](https://img.shields.io/node/v/hafas-generate-gtfs.svg)
[![chat with me on Gitter](https://img.shields.io/badge/chat%20with%20me-on%20gitter-512e92.svg)](https://gitter.im/derhuerst)
[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)Given a [`hafas-client@5`](https://github.com/public-transport/hafas-client/tree/5)-compatible HAFAS client, a time frame, and a bounding box or [`GeoJSON`](https://geojson.org) shape, `hafas-generate-gtfs` tries to build a GTFS feed for the area:
1. Finds all stations in the area.
2. Fetches all departures at these stations within the time frame.
3. Fetches the trip for each departure.## Installation
```shell
npm install hafas-generate-gtfs
```## Usage
```js
todo
```I recommend you to use this package with a [caching](https://github.com/public-transport/cached-hafas-client) HAFAS client.
## Contributing
If you have a question or need support using `hafas-generate-gtfs`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, use [the issues page](https://github.com/derhuerst/hafas-generate-gtfs/issues).