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