Thailand's government has pledged that by the end of this decade, all public transport vehicles under its control will be electric.