The calculated distance (air line) between Tržič and Ljubljana is approximately 24 miles respectively 38 kilometers.
By car or train, the actual journey to Ljubljana is certainly longer, as only the direct route (as the crow flies) between Tržič and Ljubljana has been calculated here.