Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Commit

Permalink
Merge pull request #10 from Code-for-Miami/master
Browse files Browse the repository at this point in the history
Updating to latest master version
  • Loading branch information
aramonc committed Nov 3, 2014
2 parents 7aa34ee + ac9f668 commit 89cf1cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
![Txt Sticker](http://farm3.staticflickr.com/2860/10681801524_9221751bd4_m.jpg)
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
1. Go to http://smsbus.miamicode.org/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.
Expand Down
7 changes: 7 additions & 0 deletions public_html/answer-sms.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@

// BUILD COMMAND ROUTE FROM MESSAGE
$command = $bootstrap->getRouter()->getRoute($message);

// CHECK FOR BAD COMMANDS
if($command == '') {
$bootstrap->getTwiml()->sms($message . ' is not recognized');
return $bootstrap->getResponse();
}

$response = $app->handle(Request::create($command), HttpKernelInterface::SUB_REQUEST, false);

$bootstrap->getTwiml()->sms($response->getContent());
Expand Down

0 comments on commit 89cf1cd

Please sign in to comment.