#TextNet
- npm install
- Make and configure a Twilio Account. Be sure to get a number, and configure your SMS request url to point to your server endpoint
- Get Google Maps API key
- Create the following files in the env directory:
- AUTH_TOKEN: Store your Twilio auth token in this file.
- GOOGLE_MAPS_API_KEY: Store your google maps api key in this file.
- PORT: Store the port number to run your app on in this file.
- ENDPOINT_URL: Store the full web url of your server endpoint in this file.
- ALLOWED_NUMS: Comma delimited full phone number strings that should be allowed to use this service
- CX: Store the cx ID for Google Custom Search API. See this
- node app.js &
Make arbitrary queries to google and get as many as 10 results at once (default 1)
From your mobile device, send a text message to your configured twilio number in the following format:
arbitrary query limit n
(if no limit given, defaults to 1. max 10).
-
define love
The response would be the following text:
How to Define Love: 15 Steps (with Pictures) - wikiHow Love is difficult to define. How do you avoid confusing it with infatuation or lust? Philosophers and psychologists both have attempted to define love, or at least its ... http://www.wikihow.com/Define-Love
-
computer science resources limit 3
Results in following 3 texts:
- 50+ Killer Resources for Computer Science Students 50+ Killer Online Resources for Computer Science Students. Computer science students are lucky because the Internet is like a living textbook, full of ... http://www.studyweb.com/50-killer-online-resources-for-computer-science-students/
- Top ten computer science teaching resources | Teacher Network ... Jan 24, 2012 ... Top ten computer science teaching resources. A pioneering head of ICT shares some fantastic routes into teaching children code and ... http://www.theguardian.com/teacher-network/2012/jan/24/top-ten-computer-science-teaching-resources
- CS Teaching Resources « Exploring Computer Science Dr. Ron Eglash's homepage which includes links to relevant research and other educational resources www.rpi.edu/~eglash/eglash.htm; Teaching Math and ... http://www.exploringcs.org/resources/cs-teaching-resources
Get directions to locations using only SMS / text messages using Twilio and Google Maps API
From your mobile device, send a text message to your configured twilio number in the following format:
Mode from ADDRESS/POSTAL CODE to ADDRESS/POSTAL CODE with [OPTIONS]
Where mode is one of:
- transit
- walking
- bicycling
- driving (default)
Additional options can be followed by the keyword "with" after the destination address. Supported options are:
- alternatives
- less walking
- less transfers
- arrival time of dateString
- departure time of dateString
-
transit from square one go station to toronto union station
The response would be the following text:
Transit directions from Square One GO Bus Terminal At Station, Mississauga, ON L5B, Canada to Union Station, 65 Front St W, Toronto, ON M5J 1E6, Canada. (30.0 km in 53 mins) 7:30pm - 8:23pm 1. GO Transit Transit 21: Bus towards 21P - Union Station (6 stops). Depart Square One at 7:30pm and arrive at Union Station Bus Terminal at 8:20pm. (29.8 km in 50 mins) 2. Head west toward Bay St (38 m in 1 min) 3. Turn right onto Bay St (50 m in 1 min) 4. Turn left onto Front St WDestination will be on the left (0.2 km in 2 mins)
-
Transit from square one go station to toronto union station with arrival time of 9pm today
Transit directions from Square One GO Bus Terminal At Station, Mississauga, ON L5B, Canada to Union Station, 65 Front St W, Toronto, ON M5J 1E6, Canada. (37.0 km in 59 mins) 7:57pm - 8:55pm
- Head southeast on Station Gate Rd toward Rathburn Rd W (47 m in 1 min)
- Turn right onto Rathburn Rd W (0.2 km in 3 mins)
- Turn right onto Duke of York Blvd (0.2 km in 3 mins)
- Turn right onto Centre View DrDestination will be on the left (0.2 km in 2 mins)
- GO Transit Transit 40: Bus towards 40 - Richmond Hill Centre (2 stops). Depart Square One at 8:05pm and arrive at Pearson Airport at 8:20pm. (11.6 km in 15 mins)
- Walk to UP Express Pearson Airport (70 m in 1 min)
- Walk to UP Express Pearson Airport (1 m in 1 min)
- Walk to UP Express Pearson Airport (51 m in 1 min)
- UP Express Transit UP: Train towards UP Express Union Station (3 stops). Depart UP Express Pearson Airport at 8:27pm and arrive at UP Express Union Station at 8:52pm. (24.3 km in 25 mins)
- Walk to Union Station, 65 Front St W, Toronto, ON M5J 1E6, Canada (0.2 km in 3 mins)
- Head east on Front St W toward Bay StDestination will be on the right (0.1 km in 1 min)
-
Transit from square one go station to toronto union station with alternatives
(3 texts returned)
Transit directions from Square One GO Bus Terminal At Station, Mississauga, ON L5B, Canada to Union Station, 65 Front St W, Toronto, ON M5J 1E6, Canada. (30.0 km in 53 mins) 7:30pm - 8:23pm
- GO Transit Transit 21: Bus towards 21P - Union Station (6 stops). Depart Square One at 7:30pm and arrive at Union Station Bus Terminal at 8:20pm. (29.8 km in 50 mins)
- Head west toward Bay St (38 m in 1 min)
- Turn right onto Bay St (50 m in 1 min)
- Turn left onto Front St WDestination will be on the left (0.2 km in 2 mins)
-------------Alternative Route-------------
Transit directions from Square One GO Bus Terminal At Station, Mississauga, ON L5B, Canada to Union Station, 65 Front St W, Toronto, ON M5J 1E6, Canada. (29.9 km in 1 hour 7 mins) 7:37pm - 8:44pm
- Head southeast on Station Gate Rd toward Rathburn Rd W (47 m in 1 min)
- Turn left onto Rathburn Rd W (90 m in 1 min)
- Turn rightDestination will be on the right (0.1 km in 2 mins)
- MiWay Transit 19: Bus towards Southbound (29 stops). Depart City Centre Bus Terminal Platform D at 7:40pm and arrive at Port Credit Go Station Platform 6 at 8:02pm. (8.4 km in 22 mins)
- Walk to Port Credit GO (0.1 km in 2 mins)
- Walk to Port Credit GO (73 m in 1 min)
- GO Transit Transit LW: Train towards LW-Union Station (4 stops). Depart Port Credit GO at 8:11pm and arrive at Union Station at 8:40pm. (20.7 km in 29 mins)
- Walk to Union Station, 65 Front St W, Toronto, ON M5J 1E6, Canada (31 m in 1 min)
- Head east on The PATH - Union-VIA-GO toward The PATH - Union Station
- Turn left onto Bay St (36 m in 1 min)
- Turn left onto Front St WDestination will be on the left (0.1 km in 2 mins)
-------------Alternative Route-------------
Transit directions from Square One GO Bus Terminal At Station, Mississauga, ON L5B, Canada to Union Station, 65 Front St W, Toronto, ON M5J 1E6, Canada. (27.8 km in 1 hour 13 mins) 7:31pm - 8:44pm
- Head southeast on Station Gate Rd toward Rathburn Rd W (47 m in 1 min)
- Turn right onto Rathburn Rd WDestination will be on the left (32 m in 1 min)
- MiWay Transit 20: Bus towards Eastbound (47 stops). Depart City Centre Bus Terminal Platform L at 7:33pm and arrive at Islington Subway Drop Off at 8:04pm. (13.4 km in 31 mins)
- Walk to Islington Station - Eastbound Platform (38 m in 1 min)
- TTC Transit 2: Subway towards Line 2 (Bloor-Danforth) (13 stops). Depart Islington Station - Eastbound Platform at 8:10pm and arrive at Spadina Station - Eastbound Platform at 8:29pm. (10.2 km in 19 mins)
- Walk to Spadina Station - Southbound Platform (19 m in 1 min)
- TTC Transit 1: Subway towards Line 1 (Yonge-University) (7 stops). Depart Spadina Station - Southbound Platform at 8:33pm and arrive at UNION STATION - NORTHBOUND PLATFORM towards FINCH at 8:42pm. (3.9 km in 9 mins)
- Head north on Bay St toward Front St W (36 m in 1 min)
- Turn left onto Front St WDestination will be on the left (0.1 km in 2 mins)
-------------Alternative Route-------------
Transit directions from Square One GO Bus Terminal At Station, Mississauga, ON L5B, Canada to Union Station, 65 Front St W, Toronto, ON M5J 1E6, Canada. (37.0 km in 59 mins) 7:57pm - 8:55pm
- Head southeast on Station Gate Rd toward Rathburn Rd W (47 m in 1 min)
- Turn right onto Rathburn Rd W (0.2 km in 3 mins)
- Turn right onto Duke of York Blvd (0.2 km in 3 mins)
- Turn right onto Centre View DrDestination will be on the left (0.2 km in 2 mins)
- GO Transit Transit 40: Bus towards 40 - Richmond Hill Centre (2 stops). Depart Square One at 8:05pm and arrive at Pearson Airport at 8:20pm. (11.6 km in 15 mins)
- Walk to UP Express Pearson Airport (70 m in 1 min)
- Walk to UP Express Pearson Airport (1 m in 1 min)
- Walk to UP Express Pearson Airport (51 m in 1 min)
- UP Express Transit UP: Train towards UP Express Union Station (3 stops). Depart UP Express Pearson Airport at 8:27pm and arrive at UP Express Union Station at 8:52pm. (24.3 km in 25 mins)
- Walk to Union Station, 65 Front St W, Toronto, ON M5J 1E6, Canada (0.2 km in 3 mins)
- Head east on Front St W toward Bay StDestination will be on the right (0.1 km in 1 min)