17.07.2015 Views

OCTranspoLive: A live OCTranspo GPS bus location application for ...

OCTranspoLive: A live OCTranspo GPS bus location application for ...

OCTranspoLive: A live OCTranspo GPS bus location application for ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

could easily add more resources to do all kinds of queries on the MySQL database andprovide with the <strong>application</strong> with more data. I plan in the future to implement someuser feedback functionality in order to see how accurate the <strong>OCTranspo</strong> estimatesreally are.4.3 MySQL databaseI chose MySQL database because I had previous experience with installing it on myLinux machine. The reason a database was needed is that the <strong>OCTranspo</strong> data needsto be queryable and text les don't lend themselves well to such manipulation. FirstI downloaded the <strong>OCTranspo</strong> dataset from their website. It is in the GTFS <strong>for</strong>matwhich was created by Google. The General Transit Feed Specication is a common<strong>for</strong>mat <strong>for</strong> public transportation schedules and the associated geographic in<strong>for</strong>mationsuch as <strong>bus</strong> stop <strong>location</strong>s[5]. To parse all this plain text data I wrote a Python scriptto go through all the les dened by the GTFS, create tables necessary, and populatethem. The script is named octranspo_parse.py and is on the CD included with thisreport.28

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!