The calculated distance (air line) between Viana do Castelo and Leiria is approximately 135 miles respectively 217 kilometers.
By car or train, the actual journey to Leiria is certainly longer, as only the direct route (as the crow flies) between Viana do Castelo and Leiria has been calculated here.
Air line (approximately)
217 kilometers
117 nautical miles