{"id":21013812,"url":"https://github.com/pyro2927/metrotransit-api","last_synced_at":"2025-03-13T16:21:47.483Z","repository":{"id":4622915,"uuid":"5766937","full_name":"pyro2927/MetroTransit-API","owner":"pyro2927","description":null,"archived":false,"fork":false,"pushed_at":"2012-11-07T19:53:27.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T01:52:09.195Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/pyro2927.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":"2012-09-11T15:14:49.000Z","updated_at":"2017-08-18T19:51:10.000Z","dependencies_parsed_at":"2022-08-05T23:00:08.384Z","dependency_job_id":null,"html_url":"https://github.com/pyro2927/MetroTransit-API","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/pyro2927%2FMetroTransit-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro2927%2FMetroTransit-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro2927%2FMetroTransit-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro2927%2FMetroTransit-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyro2927","download_url":"https://codeload.github.com/pyro2927/MetroTransit-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243438096,"owners_count":20290899,"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":[],"created_at":"2024-11-19T09:44:13.982Z","updated_at":"2025-03-13T16:21:47.465Z","avatar_url":"https://github.com/pyro2927.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MetroTransit API - Ruby\nThis API provides data from MetroTransit.org in a JSON encoded format.\n\nWritten by [Joe Pintozzi](http://pintozzi.com), source available on [github](https://github.com/pyro2927/MetroTransit-API).\n\n## Updates!!\nStops are now returned as an array so they maintain the correct order from \u003chttp://MetroTransit.org\u003e.  /nextTrip accepts a stop number for convenience.\n\n**This takes much influence from [cmaul](https://github.com/cmaul)'s [MetroTransit-API](https://github.com/cmaul/MetroTransit-API).  The [current implementation](http://metrotransitapi.appspot.com/) on Google's App Engine seems to no longer work, so I decided to rewrite it in ruby.**\n\n[hkp](https://github.com/hkp)'s [heroku-sinatra-app](https://github.com/hkp/heroku-sinatra-app) was used as a base to quickly get this up onto Heroku.\n\nCurrently Supported Interfaces:\n\n* routes - Displays the list of all routes provided by MetroTransit.\n* directions - Displays the list of potential directions for a given route.\n* stops - Displays the list of stops given a route and a direction\n* nextrip/nextTrip - Displays a list of times for the bus to arrive given a stop, direction, and route\n\n##Routes\n\nExample: \u003chttp://metrotransit.heroku.com/routes\u003e\n\nSample output:\n\n\t{\"55x\":\"55 - Hiawatha Light Rail\",\"888x\":\"888 - Northstar Commuter Rail\",\"2\":\"2 - Franklin Av - Riverside Av - U of M - 8th St SE\",\"3\":\"3 - U of M - Como Av - Energy Park Dr - Maryland Av\",\"4\":\"4 - New Brighton - Johnson St - Bryant Av - Southtown\",\"5\":\"5 - Brklyn Center - Fremont - 26th Av - Chicago - MOA\",\"6\":\"6 - U of M - Hennepin - Xerxes - France - Southdale\",\"7\":\"7 - Plymouth - 27Av - Midtown - 46St LRT - 34Av S\",\"8\":\"8 - Franklin Av LRT - Franklin Av SE\",...\n\n##Direction\n\nExample: \u003chttp://metrotransit.heroku.com/directions?route=50\u003e\n\nRequired parameters:\n\n* route\n\nSample output:\n\n\t{\"2\":\"EASTBOUND\",\"3\":\"WESTBOUND\"}\n    \n##Stops\n\nExample: \u003chttp://metrotransit.heroku.com/stops?route=50\u0026direction=3\u003e\n\nRequired parameters:\n\n* route\n* direction\n\nSample output:\n\n\t[{\"key\":\"4MIN\",\"name\":\"Minnesota St and 4th St\"},{\"key\":\"RIUN\",\"name\":\"University Ave and Rice St\"},{\"key\":\"UNDA\",\"name\":\"University Ave and Dale St\"},{\"key\":\"OXUN\",\"name\":\"University Ave and Oxford St\"},{\"key\":\"SNUN\",\"name\":\"University Ave W and Snelling Ave\"},{\"key\":\"FAUN\",\"name\":\"University Ave and Fairview Ave\"},{\"key\":\"EMUN\",\"name\":\"University Ave and Berry St\"},{\"key\":\"HURN\",\"name\":\"Huron Station and I-94\"},{\"key\":\"OAUN\",\"name\":\"University Ave SE and Oak St SE\"},{\"key\":\"JOED\",\"name\":\"Jones Hall and Eddy Hall (U of M)\"},{\"key\":\"WIHA\",\"name\":\"Willey Hall (U of M)\"},{\"key\":\"4NIC\",\"name\":\"4th St S  and Nicollet Mall\"},{\"key\":\"5GAR\",\"name\":\"Ramp B/5th St Transit Center\"}]\n\n##Nextrip\n\nExample: \u003chttp://metrotransit.heroku.com/nextTrip?route=50\u0026direction=3\u0026stop=FAUN\u003e or \u003chttp://metrotransit.heroku.com/nextTrip?stopnumber=15874\u003e\n\nRequired parameters:\n\n* route\n* direction\n* stop\n\nOR\n\n* stopnumber\n\nSample output:\n\n\t[{\"number\":\"16\",\"time\":\"3 Min\",\"stop_name\":\"University Av - Hampden Av\"},{\"number\":\"16\",\"time\":\"15 Min\",\"stop_name\":\"University Av - Hampden Av\"},{\"number\":\"16\",\"time\":\"19 Min\",\"stop_name\":\"University Av - Hampden Av\"},{\"number\":\"16\",\"time\":\"2:17\",\"stop_name\":\"University Av - Hampden Av\"},{\"number\":\"16\",\"time\":\"2:27\",\"stop_name\":\"University Av - Hampden Av\"}]","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyro2927%2Fmetrotransit-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyro2927%2Fmetrotransit-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyro2927%2Fmetrotransit-api/lists"}