The calculated distance (air line) between Ayabaca and San Martin is approximately 76 miles respectively 122 kilometers.
By car or train, the actual journey to San Martin is certainly longer, as only the direct route (as the crow flies) between Ayabaca and San Martin has been calculated here.
Air line (approximately)
122 kilometers
66 nautical miles