{"id":17370177,"url":"https://github.com/juliuste/oebb-hafas","last_synced_at":"2025-04-08T03:34:45.585Z","repository":{"id":57313624,"uuid":"116585506","full_name":"juliuste/oebb-hafas","owner":"juliuste","description":"JavaScript client for the ÖBB HAFAS API.","archived":false,"fork":false,"pushed_at":"2020-08-13T23:06:45.000Z","size":11,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T10:51:36.939Z","etag":null,"topics":["library","public-transport","railway"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juliuste.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-07T17:33:27.000Z","updated_at":"2024-11-28T06:42:37.000Z","dependencies_parsed_at":"2022-09-20T23:22:01.518Z","dependency_job_id":null,"html_url":"https://github.com/juliuste/oebb-hafas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Foebb-hafas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Foebb-hafas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Foebb-hafas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Foebb-hafas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juliuste","download_url":"https://codeload.github.com/juliuste/oebb-hafas/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247772938,"owners_count":20993627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["library","public-transport","railway"],"created_at":"2024-10-16T00:35:45.363Z","updated_at":"2025-04-08T03:34:45.314Z","avatar_url":"https://github.com/juliuste.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oebb-hafas\n\n**Client for the Austrian Railways (ÖBB) HAFAS API.** It acts as a consistent and straightforward interface on top of a verbose API.\n\nThis project is actually a thin wrapper around [`hafas-client`](https://github.com/derhuerst/hafas-client#hafas-client). [Its docs](https://github.com/derhuerst/hafas-client/tree/5.0.0/docs) document the API in general.\n\n[![npm version](https://img.shields.io/npm/v/oebb-hafas.svg)](https://www.npmjs.com/package/oebb-hafas)\n[![license](https://img.shields.io/github/license/juliuste/oebb-hafas.svg?style=flat)](LICENSE)\n[![chat on gitter](https://badges.gitter.im/juliuste.svg)](https://gitter.im/juliuste)\n\n## Installing\n\n```shell\nnpm install oebb-hafas\n```\n\n## API\n\nCheck [the docs for `hafas-client`](https://github.com/derhuerst/hafas-client/tree/master/docs) as well as [the ÖBB-specific customisations](https://github.com/derhuerst/hafas-client/blob/master/p/oebb/readme.md).\n\n\n## Getting Started\n\n```javascript\nconst hafas = require('oebb-hafas')('your-user-agent')\n```\n\nAs an example, we will search for a route from *Wien Westbahnhof* to *Salzburg Hbf*. To get the station ids, use [`locations(query, [opt])`](https://github.com/derhuerst/hafas-client/blob/master/docs/locations.md).\n\n```javascript\nclient.journeys('1291501', '8100002')\n.then((journeys) =\u003e console.log(journeys[0]))\n.catch(console.error)\n```\n\n## Similar Projects\n\n- - [*Friendly Public Transport Format*](https://github.com/public-transport/friendly-public-transport-format#friendly-public-transport-format-fptf) – A format for APIs, libraries and datasets containing and working with public transport data.\n- [oebb](https://github.com/juliuste/oebb) – Find ticket prices for ÖBB journeys.\n- [db-hafas](https://github.com/derhuerst/db-hafas) – Client for the German Railways (DB).\n- [vbb-hafas](https://github.com/derhuerst/vbb-hafas) – Client for the Berlin \u0026 Brandenburg public transport service (VBB).\n\n\n## Contributing\n\nIf you found a bug or want to propose a feature, feel free to visit [the issues page](https://github.com/juliuste/boilerplate/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliuste%2Foebb-hafas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliuste%2Foebb-hafas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliuste%2Foebb-hafas/lists"}