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