The calculated distance (air line) between La Guardia and Barcelona is approximately 75 miles respectively 120 kilometers.
By car or train, the actual journey to Barcelona is certainly longer, as only the direct route (as the crow flies) between La Guardia and Barcelona has been calculated here.
Air line (approximately)
120 kilometers
65 nautical miles