We need an object to save the travel time. Instead of just using a long for milliseconds I used Duration. Some of its methodes are not compatible with our current API version so we must decide if we want to use an object for duration or just use a long.
We need an object to save the travel time. Instead of just using a long for milliseconds I used Duration. Some of its methodes are not compatible with our current API version so we must decide if we want to use an object for duration or just use a long.