{"id":26497559,"url":"https://github.com/pasvistelik/minsktrans-parser","last_synced_at":"2025-03-20T13:43:12.559Z","repository":{"id":57298109,"uuid":"119739337","full_name":"pasvistelik/minsktrans-parser","owner":"pasvistelik","description":"Минсктранс - Парсер остановок, маршрутов и расписания.","archived":false,"fork":false,"pushed_at":"2018-04-22T12:30:46.000Z","size":49,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T14:04:21.612Z","etag":null,"topics":["belarus","minsk","minsktrans","minsktrans-parser","npm","npm-package","parser","timetable","transport"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/minsktrans-parser","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pasvistelik.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-01-31T20:27:09.000Z","updated_at":"2025-01-17T15:19:47.000Z","dependencies_parsed_at":"2022-09-26T18:41:48.470Z","dependency_job_id":null,"html_url":"https://github.com/pasvistelik/minsktrans-parser","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/pasvistelik%2Fminsktrans-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pasvistelik%2Fminsktrans-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pasvistelik%2Fminsktrans-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pasvistelik%2Fminsktrans-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pasvistelik","download_url":"https://codeload.github.com/pasvistelik/minsktrans-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244566930,"owners_count":20473451,"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":["belarus","minsk","minsktrans","minsktrans-parser","npm","npm-package","parser","timetable","transport"],"created_at":"2025-03-20T13:43:11.923Z","updated_at":"2025-03-20T13:43:12.542Z","avatar_url":"https://github.com/pasvistelik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# minsktrans-parser\nLoads and parses lists of stations, routes, timetables and ways-polylines of the Minsk public transport (Minsktrans company: bus, trolleybus, tram and metro).\n## Usage example:\n\n```sh\nnpm i minsktrans-parser\n```\n\n```js\nimport DataProvider from 'minsktrans-parser';\n\nconst stations = await DataProvider.getStations();\nconst routes = await DataProvider.getRoutes();\nconst times = await DataProvider.getTimes();\nconst routesPolylines = await DataProvider.getRoutesPolylines();\n```\n\nYou also can run ``` npm run save_json ``` to save this objects as \\*.json files.\n\n## Results examples\n### Stations object\n```js\n[\n  {\n    local_id: 14340,\n    name: \"Филимонова\",\n    lat: 53.92889,\n    lng: 27.63977\n  },\n  ...\n]\n```\n### Routes object\n```js\n[\n  {\n    route_type: \"bus\",\n    route_number: \"1\",\n    route_name: \"ДС Веснянка - Вокзал\",\n    ways: [\n      {\n        local_id: 214500,\n        way_name: \"ДС Веснянка - Вокзал\",\n        stations_ids_list: [15846, 54756, 54757, ...]\n      },\n      ...\n    ]\n  },\n  ...\n]\n```\n### Times object\n```js\n[\n  {\n    way_id: 214500,\n    trips_by_days: [\n      {\n        days_of_week: [0,6],\n        arrives: [\n          [340, 355, 370, 385, 400, 412, ...], // times (in minutes) of arrives to first station of way\n          [342, 357, 372, 387, 402, 414, ...], // to second station of way, ...\n          ...\n        ]\n      },\n      ...\n    ]\n  },\n  ...\n]\n```\n### Ways polylines object\n```js\n[\n  {\n    local_id: 52524,\n    polyline:\n    [\n      { lat: 53.90686, lng: 27.43751 },\n      { lat: 53.90632, lng: 27.44737 },\n      ...\n    ]\n  },\n  ...\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpasvistelik%2Fminsktrans-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpasvistelik%2Fminsktrans-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpasvistelik%2Fminsktrans-parser/lists"}