Transit Directions

Status
Completed
Approximate Date
Work Context
School Assignment
Contribution Level
Completely Independent
Technologies Used
HTML, CSS, Bootstrap, JavaScript, jQuery, AJAX, XML
Download
License

This simple application was a Rich Internet Applications assignment designed to test the students ability to make ajax calls and parse XML with Javascript.

This application taps into Google Maps' API and requests transit directions for the latest trip that would get the user to their destination on time. While developing this script I encountered issues with Chrome's Cross-Origin Resource Sharing security protocols, rather than turning them off to complete the assignment, I built a PHP script that would effectively re-serve the resource from my personal web server with the required Access-Control-Allow-Origin header. I also used this same PHP script to keep my API key for Google Maps out of my Javascript file in order to add an extra layer of security.