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