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