The calculated distance (air line) between Jūrmala and Jēkabpils is approximately 85 miles respectively 138 kilometers.
By car or train, the actual journey to Jēkabpils is certainly longer, as only the direct route (as the crow flies) between Jūrmala and Jēkabpils has been calculated here.