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