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