The calculated distance (air line) between Travnik and Sarajevo is approximately 43 miles respectively 69 kilometers.
By car or train, the actual journey to Sarajevo is certainly longer, as only the direct route (as the crow flies) between Travnik and Sarajevo has been calculated here.