{"id":17370178,"url":"https://github.com/juliuste/comboios","last_synced_at":"2025-04-08T03:34:49.455Z","repository":{"id":57203877,"uuid":"109500787","full_name":"juliuste/comboios","owner":"juliuste","description":"Comboios de Portugal (CP, Portugese Railways) API client.","archived":true,"fork":false,"pushed_at":"2020-10-12T16:10:47.000Z","size":157,"stargazers_count":50,"open_issues_count":2,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-06T19:36:58.409Z","etag":null,"topics":["library","public-transport","railway"],"latest_commit_sha":null,"homepage":null,"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":null,"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":"2017-11-04T14:18:49.000Z","updated_at":"2025-04-06T19:27:24.000Z","dependencies_parsed_at":"2022-09-17T15:00:28.667Z","dependency_job_id":null,"html_url":"https://github.com/juliuste/comboios","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Fcomboios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Fcomboios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Fcomboios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Fcomboios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juliuste","download_url":"https://codeload.github.com/juliuste/comboios/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.705Z","updated_at":"2025-04-08T03:34:49.212Z","avatar_url":"https://github.com/juliuste.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# comboios\n\nJavaScript client for the Portugese 🇵🇹 [Comboios de Portugal (CP)](https://www.cp.pt/) railway API. Complies with the friendly public transport format. Inofficial, using *CP* endpoints. Ask them for permission before using this module in production.\n\n[![npm version](https://img.shields.io/npm/v/comboios.svg)](https://www.npmjs.com/package/comboios)\n[![Build Status](https://travis-ci.org/juliuste/comboios.svg?branch=master)](https://travis-ci.org/juliuste/comboios)\n[![license](https://img.shields.io/github/license/juliuste/comboios.svg?style=flat)](license)\n\n## Installation\n\n```shell\nnpm install comboios\n```\n\n## Usage\n\n```javascript\nconst comboios = require('comboios')\n```\n\nThis package contains data in the [*Friendly Public Transport Format*](https://github.com/public-transport/friendly-public-transport-format).\n\n- [`stations()`](docs/stations.md) - to get a list of operated stations such as `Lisboa - Oriente` or `Viana do Castelo`\n- [`journeys(origin, destination, opt)`](docs/journeys.md) - to get routes between stations\n- [`stopovers(station, opt)`](docs/stopovers.md) - to get departures and arrivals at a given station\n- [`trip(id)`](docs/trip.md) - to get all stopovers for a given trip (train)\n\n## See also\n\n- [build-cp-gtfs](https://github.com/juliuste/build-cp-gtfs) - Generate CP GTFS using this module\n- [european-transport-operators](https://github.com/public-transport/european-transport-operators) - List of european long-distance transport operators, available API endpoints, GTFS feeds and client modules.\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/comboios/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliuste%2Fcomboios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliuste%2Fcomboios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliuste%2Fcomboios/lists"}