Trip Fuel Cost Calculator
So I was talking with a friend and we were figuring out the amount of money we spend on a commute to see if it is worth buying a new car for the gas savings. I was using Google Maps to determine the distance between locations. So I got the idea to create this little tool to calculate it for me. I’ve been meaning to learn the Google Maps API anyway.
DIRECTIONS: Enter the current cost of fuel, your car’s gas mileage and a start and end address to get an estimate of how much you will spend on fuel for the trip.
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.
June 4, 2008
Tags: fuel, gas, gas prices, petrol, trip, vacation Posted in: Programming & Internet




17 Responses
nothing happend; it just stayed grey.
i’m curious to see this work so let me know what i did wrong.
It tends to do that if an invalid address is entered. For example, I live on Hill Mar street, at least that is what my street sign says, but the post office and all the online services list it as Hillmar street. So if I put Hill Mar st, I don’t get results, but if I use Hillmar St. I get results.
You may just want to verify the address you are using on http://maps.google.com.
I JUST PUT TOWN AND STATE IN DESTINATION POINTS
Looking good! Sweet tool if you wanted to figure costs for a vacation.
Now if only it were easy to incorporate the cost of the vehicle, depreciation, wear and tear (Tires, Oil, etc.). So you could get a real cost of the trip. That is the number that might wake people up that driving all over is really more expensive than they think.
Nice tool especially for estimating possible commutes like I was testing for new jobs in the Chicago area.
when I lived in chicago, I was driving to indianapolis on a regular basis. I paid a high of $4.63 at the peek. Man, I flushed a lot of money on travel…
This is a very good tool to use. I wonder if it would be possible to create a tool to determine how much it would cost per mileage to fly charter flights as well as commercial. It would be interesting to see what the difference would be.
thanks for this section, i learn new things
I don’t see anything. All i see is grey screen. I did type town and state in destination point and gas miles and gas prices. I see nothing happened. Let me know!
This would be nice if it was a WordPress Plugin.
Thanks.
Nice calculator! It even works for locations here in Canada. What’s weird is the tool lets me zoom in but not back out.
All you have to do is double right click on the map, and it will zoom out. Great program by the way, I just wrote a similar program in Python. I added a place to put how many people were splitting the cost of the trip. Though mine does not use google maps. I love your program!
Neat trick Drake
I didn’t realize the map had zoom in & out capabilities.
Gas mileage is always a tough thing to exactly calculate but this does give you a good estimation on about how much your spending each time you drive.
very nice widget and also useful. hope it`s accurate as well.
the calcualtor worked, but you did not take into consideration other countries, only the USA.It’s no use to me as i live in the UK. I hove you will develop it further
Comments are closed for this entry.