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