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