The calculated distance (air line) between Buenos Aires and Heredia is approximately 78 miles respectively 126 kilometers.
By car or train, the actual journey to Heredia is certainly longer, as only the direct route (as the crow flies) between Buenos Aires and Heredia has been calculated here.
Air line (approximately)
126 kilometers
68 nautical miles