Given this paragraph, what are the two Kingdoms that used Bangkok as their capital city.
The history of Bangkok dates at least back to the early 15th century, to when it was a village on the west bank of the Chao Phraya River, under the rule of Ayutthaya. Because of its strategic location near the mouth of the river, the town gradually increased in importance. Bangkok initially served as a customs outpost with forts on both sides of the river, and was the site of a siege in 1688 in which the French were expelled from Siam. After the fall of Ayutthaya to the Burmese in 1767, the newly crowned King Taksin established his capital at the town, which became the base of the Thonburi Kingdom. In 1782, King Phutthayotfa Chulalok (Rama I) succeeded Taksin, moved the capital to the eastern bank's Rattanakosin Island, thus founding the Rattanakosin Kingdom. The City Pillar was erected on 21 April 1782, which is regarded as the date of foundation of Bangkok as the capital.
Thonburi Kingdom and Rattanakosin Kingdom are the two Kingdoms that used Bangkok as their capital city. Thonburi Kingdom used the western bank of Bangkok as its capital city. While Rattanakosin Kingdom used Bangkok's eastern bank as its capital city,.
Instruction: Given this paragraph, what are the two Kingdoms that used Bangkok as their capital city.
Context: The history of Bangkok dates at least back to the early 15th century, to when it was a village on the west bank of the Chao Phraya River, under the rule of Ayutthaya. Because of its strategic location near the mouth of the river, the town gradually increased in importance. Bangkok initially served as a customs outpost with forts on both sides of the river, and was the site of a siege in 1688 in which the French were expelled from Siam. After the fall of Ayutthaya to the Burmese in 1767, the newly crowned King Taksin established his capital at the town, which became the base of the Thonburi Kingdom. In 1782, King Phutthayotfa Chulalok (Rama I) succeeded Taksin, moved the capital to the eastern bank's Rattanakosin Island, thus founding the Rattanakosin Kingdom. The City Pillar was erected on 21 April 1782, which is regarded as the date of foundation of Bangkok as the capital.
Response: Thonburi Kingdom and Rattanakosin Kingdom are the two Kingdoms that used Bangkok as their capital city. Thonburi Kingdom used the western bank of Bangkok as its capital city. While Rattanakosin Kingdom used Bangkok's eastern bank as its capital city,.