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