Giter Site home page Giter Site logo

lucaspozzi / mdt-bus-sms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codeforsouth/mdt-bus-sms

0.0 1.0 0.0 20.36 MB

TextMyBusMIA: SMS Interface for Miami Dade Transit Bus Systems.

Home Page: http://codeformiami.org/mdt-bus-sms/

License: MIT License

mdt-bus-sms's Introduction

TextMyBusMIA

What's the purpose of this?

"Text My Bus MIA" is an SMS system that enables the user to text the ID number of his or her bus stop and receive a message with upcoming bus times for that stop. The goal is to provide easy access to updated bus schedules for low-income individuals and other Miami-Dade County residents and visitors who rely on public transportation for commuting and getting around the county.

Demo-ing the prototype

  • SMS in the Twilio test phone number: (786) 629-6468
  • SMS should be in the format: "BUS [ROUTE SHORT NAME] AT [STOP LOCATION ID]"
  • For example: "BUS 101 AT 2884" (The 101/A route at 17th St & Meridian Ave, Miami Beach, FL)

Finding out stop location IDs (for internal use mostly)

Filling out the Sticker

Txt Sticker The instructions below explain how to find your bus stop number and your bus number for TEXTMYBUS.

  1. Go to http://smsbus.illogicalsystems.com/locate-stops.html
  2. Enter the address to an intersection & press search. For example:
  • sw 137 ave & sw 56 st, miami, fl
  • Try to always use the city & state with commas.
    • Works well:
      • alhambra cir & ponce de leon blvd, coral gables, fl
    • Does not work well:
      • alhambra cir & ponce de leon blvd coral gables fl
  1. Select the pin that represents your bus stop
  2. Write down the bus stop number associated with the pin.
  3. Find your sticker.
  4. Write your bus number where it says BUS
  5. Write the stop number where it says AT
  6. Stick your bus sticker on your stop.

WHAT IF MY BUS NUMBER IS A LETTER?

All lettered buses have numbers. Here is a list of numbers associated with bus

routes:

  • A – 101
  • B – 102
  • C – 103
  • E – 105
  • G – 107
  • H – 108
  • J – 110
  • L - 112
  • M – 113
  • S – 119

How to set this up

  • Create a web server, basic LAMP stack (Requires PHP 5.3 and above)
  • Clone the repo
  • Download composer (package manager) curl -sS https://getcomposer.org/installer | php php composer.phar install
  • Create a test Twilio account and set up the SMS hook to the web server, pointing to answer-sms.php
  • Config file is in /config/config.php.dist - you put in the twilio send number, sid and auth_token. Don't forget to config your MySQL database in the db section accordingly. We parse the data from the feeds array under "gtfs_exchange".
  • In the cli there's a command-line PHP script called update_gtfs.php - you can run this manually or set up a cron job.
  • The transit data is in GTFS format: http://developers.google.com/transit/gtfs/reference - We converted the GTFS formatted file into SQL in the data folder, under gtfs_tables.sql

Open issues & Future Feature Requests

  • Right now, the bus IDs are in the GTFS data and - unfortunately - not part of the bus stop sign. As a workaround, we are playing around with taking a bus line and assigning a simple code for a stop. We are focusing on the South Beach Local (123) - Route ID #12782 in GTFS.
  • Translations in Spanish and Haitian Creole
  • Flesh out more the stop locator & maybe not use SMS to find location IDs.

Contributors

mdt-bus-sms's People

Contributors

aramonc avatar tstpham avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.