The calculated distance (air line) between Aserrí and Quepos is approximately 30 miles respectively 49 kilometers.
By car or train, the actual journey to Quepos is certainly longer, as only the direct route (as the crow flies) between Aserrí and Quepos has been calculated here.