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