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: over 1 year 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-30T19:04:12.000Z (about 6 years ago)
- Last Synced: 2025-04-15T05:17:11.173Z (over 1 year 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: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
- awesome-transit - hafas-generate-gtfs - in-progress)* – A Javascript tool to generate GTFS dumps from HAFAS endpoints. (Producing Data / GTFS)
- awesome-transit - hafas-generate-gtfs - in-progress)*] – A Javascript tool to generate GTFS dumps from HAFAS endpoints. (Uncategorized / Uncategorized)
README
# hafas-generate-gtfs
**Generate [GTFS](https://gtfs.org/reference/static) dumps from HAFAS endpoints.**
[](https://www.npmjs.com/package/hafas-generate-gtfs)
[](https://travis-ci.org/derhuerst/hafas-generate-gtfs)


[](https://gitter.im/derhuerst)
[](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).