The calculated distance (air line) between Ulbroka and Liepāja is approximately 128 miles respectively 207 kilometers.
By car or train, the actual journey to Liepāja is certainly longer, as only the direct route (as the crow flies) between Ulbroka and Liepāja has been calculated here.