Write trip method to add duration to sub routes