Sunday, January 10, 2010

Project Antollroid

Hi, Antollroid is a little simple application created in December 2009. It is a toll fare calculator. I was traveling to Melaka for vocation last year. Since I am driving on the North-South Expressway, I would like to know how much it would cost so that I can top up my Touch'n Go card in advance. This need motivates me to create a toll fare calculator for Android platform.

Data
This is a very simple application, the user specifies a start point (e.g. Ayer Keroh), and an end point (Johor Bahru Causeway). The application will displays the price for various classes of vehicle, and discounts. In order to do this, I need to html-scrap Plus' website. In 2009, the website design was a disaster filled with malformed HTML. Anyway I managed to accomplish it with a Python script.

Implementation
Eventually I structured the collected data into a SQLite database. This database file will be distributed with the application. I assume the fare will not be adjusted frequently, therefore it is not necessary for the application to retrieve the data from the internet. Skipping internet access and text processing makes the application less resource intensive. I have created a working prototype, and published the source code at http://code.google.com/p/antollroid/.

TODO
The application is usable but not completed yet. These are the features that I would like to add:
  • Display fare for each open system toll
  • Display location of Rest and Services Areas

Collaboration
A thread has been created to facilitate discussion on this project. Everyone is welcomed to join the discussion.


FYI: Plus has revamped its website. It is much cleaner now.

1 comments: