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