You may write your own custom component that tracks the distance driven by the vehicle. You may do that in several ways: