{"id":17370406,"url":"https://github.com/juliuste/zpcg","last_synced_at":"2025-10-31T07:31:23.638Z","repository":{"id":57158753,"uuid":"134978942","full_name":"juliuste/zpcg","owner":"juliuste","description":"Client for the Montenegrin ŽPCG railway API.","archived":false,"fork":false,"pushed_at":"2020-06-01T07:38:56.000Z","size":96,"stargazers_count":1,"open_issues_count":10,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T07:45:52.644Z","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":"2018-05-26T16:50:07.000Z","updated_at":"2019-06-14T15:45:48.000Z","dependencies_parsed_at":"2022-09-07T21:01:38.962Z","dependency_job_id":null,"html_url":"https://github.com/juliuste/zpcg","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%2Fzpcg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Fzpcg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Fzpcg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Fzpcg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juliuste","download_url":"https://codeload.github.com/juliuste/zpcg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239139709,"owners_count":19588246,"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:42:45.530Z","updated_at":"2025-10-31T07:31:18.166Z","avatar_url":"https://github.com/juliuste.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zpcg\n\nJavaScript client for the Montenegrin 🇲🇪 [ŽPCG](https://www.zcg-prevoz.me/) railway API. Complies with the [friendly public transport format](https://github.com/public-transport/friendly-public-transport-format). Inofficial, using *ŽPCG* endpoints. Ask them for permission before using this module in production.\n\n[![npm version](https://img.shields.io/npm/v/zpcg.svg)](https://www.npmjs.com/package/zpcg)\n[![Build Status](https://travis-ci.org/juliuste/zpcg.svg?branch=master)](https://travis-ci.org/juliuste/zpcg)\n[![Greenkeeper badge](https://badges.greenkeeper.io/juliuste/zpcg.svg)](https://greenkeeper.io/)\n[![dependency status](https://img.shields.io/david/juliuste/zpcg.svg)](https://david-dm.org/juliuste/zpcg)\n[![license](https://img.shields.io/github/license/juliuste/zpcg.svg?style=flat)](license)\n[![fptf version](https://fptf.badges.juliustens.eu/badge/juliuste/zpcg)](https://fptf.badges.juliustens.eu/link/juliuste/zpcg)\n[![chat on gitter](https://badges.gitter.im/juliuste.svg)](https://gitter.im/juliuste)\n\n## Installation\n\n```shell\nnpm install --save zpcg\n```\n\n## Usage\n\n```javascript\nconst zpcg = require('zpcg')\n```\n\nThis package contains data in the [*Friendly Public Transport Format*](https://github.com/public-transport/friendly-public-transport-format) and provides the following methods:\n\n- [`stations()`](docs/stations.md) to get a list of operated stations, such as `Podgorica`, `Bar` or `Belgrade`.\n- [`journeys(origin, destination, date = new Date())`](docs/journeys.md) to get routes between stations. *Please note that the API doesn't yet support interchange connections.*\n- [`journeyLeg(legId, departureDate)`](docs/journeyLeg.md) to get all passed stations and prices for a given journey leg.\n\n## Contributing\n\nIf you found a bug, want to propose a feature or feel the urge to complain about your life, feel free to visit [the issues page](https://github.com/juliuste/zpcg/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliuste%2Fzpcg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliuste%2Fzpcg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliuste%2Fzpcg/lists"}