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