The calculated distance (air line) between Warminster and Swansea is approximately 81 miles respectively 131 kilometers.
By car or train, the actual journey to Swansea is certainly longer, as only the direct route (as the crow flies) between Warminster and Swansea has been calculated here.
Air line (approximately)
131 kilometers
71 nautical miles