Added function to calculate trip cost. I'm not sure if distance is going to be correct or if the returned object is valid. Needs testing.