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