Liepaja is a city in Latvia.
East towards Riga
Walk in the direction of the Liepāja - Riga highway (read the traffic signs), it is a five minute walk. When you see a bus stop on that highway, you can start hitchhiking from there.
South towards Palanga, Klaipėda
Take the tram in direction south (there is only one tram line) and get out at Baata shopping mall. Follow the main road straight until you get to the crossed out Liepaja sign here, it's a 15 minutes walk. Start hitchhiking from there.