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