Jun 04

Trip Fuel Cost Calculator

Tag: Programming & InternetDustin @ 4:03 pm

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.

Fuel Cost:
dollars per gallon

Your car’s average gas mileage:
miles per gallon (mpg)

to

2 Responses to “Trip Fuel Cost Calculator”

  1. norm says:

    nothing happend; it just stayed grey.
    i’m curious to see this work so let me know what i did wrong.

  2. Dustin says:

    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.

Leave a Reply



ss_blog_claim=4973c51f5e7bec57951f995fed1b85f3 ss_blog_claim=4973c51f5e7bec57951f995fed1b85f3