{"id":13426450,"url":"https://github.com/dinoshunter/transantiago-client","last_synced_at":"2025-03-15T21:31:13.889Z","repository":{"id":57378960,"uuid":"56475663","full_name":"dinoshunter/transantiago-client","owner":"dinoshunter","description":"npm package for query data from Transantiago","archived":false,"fork":false,"pushed_at":"2017-12-07T20:21:30.000Z","size":8,"stargazers_count":12,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-08T14:31:11.955Z","etag":null,"topics":["api","node","transantiago"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dinoshunter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-18T03:57:31.000Z","updated_at":"2017-11-02T18:25:55.000Z","dependencies_parsed_at":"2022-09-05T07:10:14.288Z","dependency_job_id":null,"html_url":"https://github.com/dinoshunter/transantiago-client","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/dinoshunter%2Ftransantiago-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinoshunter%2Ftransantiago-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinoshunter%2Ftransantiago-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dinoshunter%2Ftransantiago-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dinoshunter","download_url":"https://codeload.github.com/dinoshunter/transantiago-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243792362,"owners_count":20348630,"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":["api","node","transantiago"],"created_at":"2024-07-31T00:01:34.848Z","updated_at":"2025-03-15T21:31:13.554Z","avatar_url":"https://github.com/dinoshunter.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Transantiago api\n\nNon official api for querying data from [Transantiago](http://www.transantiago.cl/) and\nget closest buses to bus stop.\n\n# Install\n```sh\nnpm install transantiago-client --save\n```\n\n# Usage\n\nExample: Query for buses arrival time and distance to bus stop pc155.\n\n```javascript\nvar tsapi = require(\"transantiago-client\");\n\ntsapi(\"pc155\").then( r =\u003e {\n\n  //do something\n  console.log(JSON.stringify(r));\n\n}).catch(err =\u003e {\n    console.log(err)\n});\n```\n\nThe result is:\n\n```json\n{\n  \"avail\": [\n    {\n      \"service\": \"401N\",\n      \"buses\": [\n        {\n          \"bus\": \"CJRX99\",\n          \"arrivaltime\": \"En menos de 10 min.\",\n          \"dist\": \"47  mts.\"\n        },\n        {\n          \"bus\": \"FLXC69\",\n          \"arrivaltime\": \"En menos de 10 min.\",\n          \"dist\": \"4117  mts.\"\n        }\n      ]\n    },\n    {\n      \"service\": \"426\",\n      \"buses\": [\n        {\n          \"bus\": \"FLXJ72\",\n          \"arrivaltime\": \"Entre 07 Y 15 min.\",\n          \"dist\": \"5727  mts.\"\n        },\n        {\n          \"bus\": \"WB1981\",\n          \"arrivaltime\": \"Entre 22 Y 32 min.\",\n          \"dist\": \"14017  mts.\"\n        }\n      ]\n    }\n  ],\n  \"outof\": [\n    \"117\",\n    \"117C\",\n    \"401\",\n    \"406\",\n    \"407\",\n    \"421\",\n    \"427\",\n    \"429C\",\n    \"430\"\n  ]\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinoshunter%2Ftransantiago-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdinoshunter%2Ftransantiago-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdinoshunter%2Ftransantiago-client/lists"}