Since 1918 Riga has been the capital city of Latvia .
Latvia , with Riga as its capital city , thus declared its independence on November 18 , 1918 .