The calculated distance (air line) between Valka and Līvāni is approximately 98 miles respectively 158 kilometers.
By car or train, the actual journey to Līvāni is certainly longer, as only the direct route (as the crow flies) between Valka and Līvāni has been calculated here.