Today I have been working on a simple application to calculate how much petrol I would have to buy to travel between two locations. I wanted this application because the cost of petrol means that travelling to far off locations for day trips is becoming less feasible. You can have a play with it on my Petrol Calculator page, a link can also be found on the left.
This application uses the Google Maps API. The user enters some simple details, start location, end location, MPG and the price of petrol. Using Google Maps I then pull back the distance between the two locations, perform some simple calculations and show the user directions, a map and the cost to travel this distance.
I am sure this application can be enhanced, so if anyone has any good suggestions on improvements please let me know.
Add comment