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