The calculated distance (air line) between San Miguel and Quito is approximately 108 miles respectively 174 kilometers.
By car or train, the actual journey to Quito is certainly longer, as only the direct route (as the crow flies) between San Miguel and Quito has been calculated here.
Air line (approximately)
174 kilometers
94 nautical miles