{"id":2473,"date":"2011-03-28T17:36:45","date_gmt":"2011-03-28T22:36:45","guid":{"rendered":"http:\/\/blogs.terrorware.com\/geoff\/?p=2473"},"modified":"2013-03-29T01:37:53","modified_gmt":"2013-03-29T06:37:53","slug":"twitter-interface-to-cta-bus-tracker","status":"publish","type":"post","link":"https:\/\/blogs.terrorware.com\/geoff\/2011\/03\/28\/twitter-interface-to-cta-bus-tracker\/","title":{"rendered":"Twitter interface to CTA bus tracker"},"content":{"rendered":"<figure id=\"attachment_1713\" aria-describedby=\"caption-attachment-1713\" style=\"width: 300px\" class=\"wp-caption alignleft\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1713\" src=\"http:\/\/blogs.terrorware.com\/geoff\/files\/2009\/08\/3707899172_b755c2e681-300x225.jpg\" alt=\"CTA Bus\" width=\"300\" height=\"225\" srcset=\"https:\/\/blogs.terrorware.com\/geoff\/files\/2009\/08\/3707899172_b755c2e681-300x225.jpg 300w, https:\/\/blogs.terrorware.com\/geoff\/files\/2009\/08\/3707899172_b755c2e681.jpg 500w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><figcaption id=\"caption-attachment-1713\" class=\"wp-caption-text\">CTA Bus photo by seizethedave via Flickr.<\/figcaption><\/figure>\n<h3>About<\/h3>\n<p>This is a Twitter (and hopefully, later, a plain old SMS) interface to the CTA Bus Tracker so those of us with simple mobile phones can find out information about our busses.<\/p>\n<p>Ever since I moved to Chicago, I&#8217;ve been riding the Chicago Transit Authority (CTA) busses almost every day.\u00c2  I&#8217;ve missed my bus more than a few times too.\u00c2  CTA has a <a href=\"http:\/\/www.ctabustracker.com\">Bus Tracker<\/a> website that works from computers and mobile devices with web browsers (there&#8217;s iPhone apps as well), but my phone only does SMS.<\/p>\n<p>This is a work in progress as I&#8217;m coding it mostly on the bus on the way to and from work.<\/p>\n<h3>Usage<\/h3>\n<p>In order to do anything, you have to follow <a href=\"http:\/\/www.twitter.com\/ctabt\">@ctabt<\/a>.<\/p>\n<p>The best way to show how to use the system is through some examples:<\/p>\n<h4>Get help<\/h4>\n<p>d ctabt help<\/p>\n<h4>Get all stop names and IDs for Eastbound route 77<\/h4>\n<p>d ctabt 77 east stops<\/p>\n<h4>Get the name for Eastbound route 77 stops at Sheffield<\/h4>\n<p>d ctabt 77 east stops shef<\/p>\n<h4>Get upcoming busses for a particular stop by name<\/h4>\n<p>d ctabt 77 east shef<\/p>\n<h4>Get upcoming busses for a particular stop by ID<\/h4>\n<p>d ctabt 77 east 9288<\/p>\n<h4>You can abbreviate most parts of the commands<\/h4>\n<p>d ctabt 77 e s shef<\/p>\n<h3>Related Work<\/h3>\n<ul>\n<li>Implementing this was made possible by Harper Reed&#8217;s awesome opening of the <a href=\"http:\/\/chicagowiki.transitapi.com\/Home\/bustracker-api\">Bus Tracker API<\/a>.<\/li>\n<\/ul>\n<ul>\n<li><a href=\"http:\/\/ctatweet.com\/\">CTA Tweet Feed<\/a> has Twitter\/RSS feeds of authoritative and user-generated updates about riding the CTA.<\/li>\n<\/ul>\n<h3>Links<\/h3>\n<ul>\n<li><a href=\"http:\/\/www.twitter.com\/ctabt\">Follow CTA Twitter<\/a><\/li>\n<li><a href=\"http:\/\/github.com\/ghing\/CTA-Twitter\/tree\">Browse the code<\/a><\/li>\n<li><a href=\"http:\/\/github.com\/ghing\/CTA-Twitter\/issues\">Report a bug<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>About This is a Twitter (and hopefully, later, a plain old SMS) interface to the CTA Bus Tracker so those of us with simple mobile phones can find out information about our busses. Ever since I moved to Chicago, I&#8217;ve been riding the Chicago Transit Authority (CTA) busses almost every day.\u00c2 I&#8217;ve missed my bus&hellip; <a class=\"more-link\" href=\"https:\/\/blogs.terrorware.com\/geoff\/2011\/03\/28\/twitter-interface-to-cta-bus-tracker\/\">Continue reading <span class=\"screen-reader-text\">Twitter interface to CTA bus tracker<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[20659],"tags":[20662,724,662],"class_list":["post-2473","post","type-post","status-publish","format-standard","hentry","category-code","tag-api","tag-python","tag-twitter","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4wnIz-DT","_links":{"self":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/2473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/comments?post=2473"}],"version-history":[{"count":3,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/2473\/revisions"}],"predecessor-version":[{"id":2491,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/posts\/2473\/revisions\/2491"}],"wp:attachment":[{"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/media?parent=2473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/categories?post=2473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.terrorware.com\/geoff\/wp-json\/wp\/v2\/tags?post=2473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}