The calculated distance (air line) between San Adrián and Madrid is approximately 161 miles respectively 259 kilometers.
By car or train, the actual journey to Madrid is certainly longer, as only the direct route (as the crow flies) between San Adrián and Madrid has been calculated here.
Air line (approximately)
259 kilometers
140 nautical miles