{"id":19684252,"url":"https://github.com/elliotwutingfeng/train_arrival","last_synced_at":"2025-09-07T20:49:06.629Z","repository":{"id":213487487,"uuid":"734206467","full_name":"elliotwutingfeng/train_arrival","owner":"elliotwutingfeng","description":"Extract train arrival information from the SMRT Train Arrival Information API.","archived":false,"fork":false,"pushed_at":"2025-01-21T06:14:16.000Z","size":49,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-10T20:40:04.661Z","etag":null,"topics":["api","arrival","arrival-times","estimated-time-of-arrival","eta","metro","mrt","rail","singapore","smrt","subway","trip-planning"],"latest_commit_sha":null,"homepage":"","language":"Python","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/elliotwutingfeng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-12-21T05:58:40.000Z","updated_at":"2025-06-23T06:09:35.000Z","dependencies_parsed_at":"2025-08-10T20:27:14.153Z","dependency_job_id":"486477fe-a694-4205-8f20-fc34cf6c31fe","html_url":"https://github.com/elliotwutingfeng/train_arrival","commit_stats":null,"previous_names":["elliotwutingfeng/train_arrival"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elliotwutingfeng/train_arrival","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elliotwutingfeng%2Ftrain_arrival","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elliotwutingfeng%2Ftrain_arrival/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elliotwutingfeng%2Ftrain_arrival/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elliotwutingfeng%2Ftrain_arrival/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elliotwutingfeng","download_url":"https://codeload.github.com/elliotwutingfeng/train_arrival/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elliotwutingfeng%2Ftrain_arrival/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274095108,"owners_count":25221431,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","arrival","arrival-times","estimated-time-of-arrival","eta","metro","mrt","rail","singapore","smrt","subway","trip-planning"],"created_at":"2024-11-11T18:17:17.528Z","updated_at":"2025-09-07T20:49:06.605Z","avatar_url":"https://github.com/elliotwutingfeng.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n  \u003ch3 align=\"center\"\u003eTrain Arrival\u003c/h3\u003e\n  \u003cimg src=\"images/train.svg\" alt=\"Train\" width=\"200\" height=\"200\"\u003e\n\n  \u003cp align=\"center\"\u003e\n    Extract train arrival information from the SMRT \u003ca href=\"https://trainarrivalweb.smrt.com.sg\"\u003eTrain Arrival Information\u003c/a\u003e API.\n  \u003c/p\u003e\n\n  \u003cp align=\"center\"\u003e\n    \u003cstrong\u003eOutput format:\u003c/strong\u003e JSON string\n  \u003c/p\u003e\n\n  \u003cp align=\"center\"\u003e\n  \u003ca href=\"https://python.org\"\u003e\u003cimg src=\"https://img.shields.io/badge/Python-FFD43B?style=for-the-badge\u0026logo=python\u0026logoColor=blue\" alt=\"Python\"/\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\n  \u003cp align=\"center\"\u003e\n  \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/LICENSE-MIT-GREEN?style=for-the-badge\" alt=\"MIT license\"/\u003e\u003c/a\u003e\n  \u003ca href=\"https://coveralls.io/github/elliotwutingfeng/train_arrival?branch=main\"\u003e\u003cimg src=\"https://img.shields.io/coverallsCoverage/github/elliotwutingfeng/train_arrival?logo=coveralls\u0026style=for-the-badge\" alt=\"Coveralls\"/\u003e\u003c/a\u003e\n  \u003cimg src='https://coveralls.io/repos/github/elliotwutingfeng/train_arrival/badge.svg?branch=main' alt='' width=\"0\" height=\"0\" /\u003e\n  \u003c/p\u003e\n\n\u003c/div\u003e\n\n**Disclaimer:** This project is not sponsored, endorsed, or otherwise affiliated with SMRT Corporation.\n\n## Requirements\n\nPython 2.7+/3.2.6+\n\n## Usage\n\n```python\nget_all_station_info()\n\"\"\"\n'{\"count\": 166, \"next\": null, \"previous\": null, \"results\": [{\"name\": \"Admiralty\", \"code\": \"NS10\", ...'\n\"\"\"\n\nget_all_station_names()\n\"\"\"\n['Admiralty',\n 'Aljunied',\n 'Ang Mo Kio',\n 'Bakau',\n ...\n]\n\"\"\"\n\nget_train_arrival_time_by_id(\"Paya Lebar\")\n\"\"\"\n'{\"results\":[{\"status\":1,\"platform_ID\":\"CPYL_A\",\"code\":\"CC9,EW8\",\"next_train_arr\":\"7\",\"mrt\":\"Paya Lebar\", ...'\n\"\"\"\n\nget_all_train_arrival_time()\n\"\"\"\n'{\"Admiralty\": {\"results\": [{\"status\": 1, \"platform_ID\": \"ADM_A\", \"code\": \"NS10\", \"next_train_arr\": \"6\", ...'\n\"\"\"\n```\n\n## Warning\n\n- This API appears not to be intended by SMRT for public use. You are solely [responsible](LICENSE) for your use of this application.\n\n## Credits\n\n- [RailRouter SG](https://github.com/cheeaun/railrouter-sg) for information on accessing the SMRT API.\n- Logo modified from public domain vector at [svgrepo.com](https://www.svgrepo.com/svg/63666/singapore-metro-logo).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felliotwutingfeng%2Ftrain_arrival","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felliotwutingfeng%2Ftrain_arrival","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felliotwutingfeng%2Ftrain_arrival/lists"}