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