Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

A Voice-First Application that allows users to make queries to the Transloc API for University of Vermont shuttle information.

Notifications You must be signed in to change notification settings

abarson/Transloc-Rider

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transloc-Rider

A Voice-First Application that allows users to make queries to the TransLoc API for University of Vermont shuttle information.

Code

src/main/abarson/transloc contains all code responsible for connecting to the TransLoc API. To see how specific queries are made to the Transloc API, see TranslocApi.java. The api package itself encapsulates all of the logic surrounding making requests to Transloc API, and mapping the JSON responses returned to Java classes. See Route.java and Stop.java for the structure of these JSON objects.

RiderSpeechlet.java defines the structure of the conversation, handling the user's intent and the slot parameters spoken by the user. See RouteCorrector.java and StopCorrector.java in the validation package to see the lists of supported synonyms, and often misheard, slot variables for Routes and Stops. After user testing, these lists will increase in size to allow for more loosely structures requests.

Testing

When UVM routes and stops go out of season, the Transloc API will reflect this by no longer returning them in API calls. Likewise, when routes and stops come into season, they will appear once again in the API calls made to the Transloc API. To help stay on top of when these changes are made, there are two JUnit test files that can be run. In src/main/test/abarson, RouteTest.java and StopTest.java will alert you if either of the Corrector classes have out-of-season/non-existent stops or routes (stops or routes not returned by Transloc API), or if either of the Corrector classes are missing stops or routes returned by the Transloc API. Running these tests occasionally makes maintaining the system very simple, as stops and routes can be added or removed from the Corrector classes as needed.

About

A Voice-First Application that allows users to make queries to the Transloc API for University of Vermont shuttle information.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.