This guy made an app for tracking gas mileage, but it did not involve GPS. I just noticed he hasn't posted anything on the site in a couple weeks, but maybe you could try and contact him and see if he can work on integrating the features you want. It sounds promising.