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