The calculated distance (air line) between Tamarindo and Heredia is approximately 119 miles respectively 192 kilometers.
By car or train, the actual journey to Heredia is certainly longer, as only the direct route (as the crow flies) between Tamarindo and Heredia has been calculated here.