Commit db79da93 authored by Volker Krause's avatar Volker Krause

Update country database from Wikidata

parent 244feff9
......@@ -101,7 +101,7 @@ private Q_SLOTS:
country = KnowledgeDb::countryForId(CountryId{"GB"});
QCOMPARE(country.drivingSide, KnowledgeDb::DrivingSide::Left);
QCOMPARE(country.powerPlugTypes, {TypeG});
country = KnowledgeDb::countryForId(CountryId{"CK"});
country = KnowledgeDb::countryForId(CountryId{"GL"});
QCOMPARE(country.drivingSide, KnowledgeDb::DrivingSide::Unknown);
}
......
......@@ -18,6 +18,7 @@ static const Country country_table[] = {
{CountryId{"AR"}, DrivingSide::Right, {TypeC|TypeI}}, // Argentina
{CountryId{"AT"}, DrivingSide::Right, {TypeC|TypeF}}, // Austria
{CountryId{"AU"}, DrivingSide::Left, {TypeI}}, // Australia
{CountryId{"AW"}, DrivingSide::Unknown, {TypeA|TypeB|TypeF}}, // Aruba
{CountryId{"AZ"}, DrivingSide::Right, {TypeC|TypeF}}, // Azerbaijan
{CountryId{"BA"}, DrivingSide::Right, {TypeC|TypeF}}, // Bosnia and Herzegovina
{CountryId{"BB"}, DrivingSide::Left, {TypeA|TypeB}}, // Barbados
......@@ -42,7 +43,7 @@ static const Country country_table[] = {
{CountryId{"CG"}, DrivingSide::Right, {TypeC|TypeE}}, // Republic of the Congo
{CountryId{"CH"}, DrivingSide::Right, {TypeC|TypeJ}}, // Switzerland
{CountryId{"CI"}, DrivingSide::Right, {TypeC|TypeE}}, // Ivory Coast
{CountryId{"CK"}, DrivingSide::Unknown, {TypeI}}, // Cook Islands
{CountryId{"CK"}, DrivingSide::Left, {TypeI}}, // Cook Islands
{CountryId{"CL"}, DrivingSide::Right, {TypeC|TypeL}}, // Chile
{CountryId{"CM"}, DrivingSide::Right, {TypeC|TypeE}}, // Cameroon
{CountryId{"CN"}, DrivingSide::Right, {TypeA|TypeC|TypeI}}, // People's Republic of China
......@@ -50,6 +51,7 @@ static const Country country_table[] = {
{CountryId{"CR"}, DrivingSide::Right, {TypeA|TypeB}}, // Costa Rica
{CountryId{"CU"}, DrivingSide::Right, {TypeA|TypeB}}, // Cuba
{CountryId{"CV"}, DrivingSide::Right, {TypeC|TypeF}}, // Cape Verde
{CountryId{"CW"}, DrivingSide::Right, {TypeA|TypeB}}, // Curaçao
{CountryId{"CY"}, DrivingSide::Left, {TypeG}}, // Cyprus
{CountryId{"CZ"}, DrivingSide::Right, {TypeC|TypeE}}, // Czech Republic
{CountryId{"DE"}, DrivingSide::Right, {TypeC|TypeF}}, // Germany
......@@ -61,20 +63,21 @@ static const Country country_table[] = {
{CountryId{"EC"}, DrivingSide::Right, {TypeA|TypeB}}, // Ecuador
{CountryId{"EE"}, DrivingSide::Right, {TypeC|TypeF}}, // Estonia
{CountryId{"EG"}, DrivingSide::Right, {TypeC|TypeF}}, // Egypt
{CountryId{"EH"}, DrivingSide::Unknown, {}}, // Western Sahara
{CountryId{"ER"}, DrivingSide::Right, {TypeC|TypeL}}, // Eritrea
{CountryId{"ES"}, DrivingSide::Right, {TypeC|TypeF}}, // Spain
{CountryId{"ET"}, DrivingSide::Right, {TypeC|TypeD|TypeE|TypeF|TypeJ|TypeL}}, // Ethiopia
{CountryId{"FI"}, DrivingSide::Right, {TypeC|TypeF}}, // Finland
{CountryId{"FJ"}, DrivingSide::Left, {TypeI}}, // Fiji
{CountryId{"FM"}, DrivingSide::Right, {TypeA|TypeB}}, // Federated States of Micronesia
{CountryId{"FO"}, DrivingSide::Right, {TypeC|TypeE|TypeF|TypeK}}, // Faroe Islands
{CountryId{"FR"}, DrivingSide::Right, {TypeC|TypeE}}, // France
{CountryId{"GA"}, DrivingSide::Right, {TypeC}}, // Gabon
{CountryId{"GB"}, DrivingSide::Left, {TypeG}}, // United Kingdom
{CountryId{"GD"}, DrivingSide::Left, {TypeG}}, // Grenada
{CountryId{"GE"}, DrivingSide::Right, {TypeC|TypeF}}, // Georgia
{CountryId{"GH"}, DrivingSide::Right, {TypeD|TypeG}}, // Ghana
{CountryId{"GM"}, DrivingSide::Right, {TypeG}}, // The Gambia
{CountryId{"GL"}, DrivingSide::Unknown, {TypeC|TypeE|TypeF|TypeK}}, // Greenland
{CountryId{"GM"}, DrivingSide::Right, {TypeG}}, // Gambia
{CountryId{"GN"}, DrivingSide::Right, {TypeC|TypeF|TypeK}}, // Guinea
{CountryId{"GQ"}, DrivingSide::Right, {TypeC|TypeE}}, // Equatorial Guinea
{CountryId{"GR"}, DrivingSide::Right, {TypeC|TypeF}}, // Greece
......@@ -93,7 +96,6 @@ static const Country country_table[] = {
{CountryId{"IR"}, DrivingSide::Right, {TypeC|TypeF}}, // Iran
{CountryId{"IS"}, DrivingSide::Right, {TypeC|TypeF}}, // Iceland
{CountryId{"IT"}, DrivingSide::Right, {TypeC|TypeF|TypeL}}, // Italy
{CountryId{"JE"}, DrivingSide::Left, {TypeG}}, // Jersey
{CountryId{"JM"}, DrivingSide::Left, {TypeA|TypeB}}, // Jamaica
{CountryId{"JO"}, DrivingSide::Right, {TypeB|TypeC|TypeD|TypeF|TypeG|TypeJ}}, // Jordan
{CountryId{"JP"}, DrivingSide::Left, {TypeA|TypeB}}, // Japan
......@@ -124,10 +126,11 @@ static const Country country_table[] = {
{CountryId{"ME"}, DrivingSide::Right, {TypeC|TypeF}}, // Montenegro
{CountryId{"MG"}, DrivingSide::Right, {TypeC|TypeD|TypeE|TypeJ|TypeK}}, // Madagascar
{CountryId{"MH"}, DrivingSide::Right, {}}, // Marshall Islands
{CountryId{"MK"}, DrivingSide::Right, {TypeC|TypeF}}, // Macedonia
{CountryId{"ML"}, DrivingSide::Left, {TypeC|TypeE}}, // Mali
{CountryId{"MK"}, DrivingSide::Right, {TypeC|TypeF}}, // North Macedonia
{CountryId{"ML"}, DrivingSide::Right, {TypeC|TypeE}}, // Mali
{CountryId{"MM"}, DrivingSide::Right, {TypeC|TypeD|TypeF|TypeG}}, // Myanmar
{CountryId{"MN"}, DrivingSide::Right, {TypeC|TypeE}}, // Mongolia
{CountryId{"MP"}, DrivingSide::Unknown, {}}, // Northern Mariana Islands
{CountryId{"MR"}, DrivingSide::Right, {TypeC}}, // Mauritania
{CountryId{"MT"}, DrivingSide::Left, {TypeG}}, // Malta
{CountryId{"MU"}, DrivingSide::Left, {TypeC|TypeG}}, // Mauritius
......@@ -144,7 +147,7 @@ static const Country country_table[] = {
{CountryId{"NO"}, DrivingSide::Right, {TypeC|TypeF}}, // Norway
{CountryId{"NP"}, DrivingSide::Left, {TypeC|TypeD|TypeM}}, // Nepal
{CountryId{"NR"}, DrivingSide::Left, {TypeI}}, // Nauru
{CountryId{"NU"}, DrivingSide::Left, {}}, // Niue
{CountryId{"NU"}, DrivingSide::Left, {TypeI}}, // Niue
{CountryId{"NZ"}, DrivingSide::Left, {TypeI}}, // New Zealand
{CountryId{"OM"}, DrivingSide::Right, {TypeC|TypeG}}, // Oman
{CountryId{"PA"}, DrivingSide::Right, {TypeA|TypeB}}, // Panama
......@@ -178,8 +181,9 @@ static const Country country_table[] = {
{CountryId{"SS"}, DrivingSide::Right, {}}, // South Sudan
{CountryId{"ST"}, DrivingSide::Right, {TypeC|TypeF}}, // São Tomé and Príncipe
{CountryId{"SV"}, DrivingSide::Right, {TypeA|TypeB}}, // El Salvador
{CountryId{"SX"}, DrivingSide::Unknown, {}}, // Sint Maarten
{CountryId{"SY"}, DrivingSide::Right, {TypeC|TypeE|TypeL}}, // Syria
{CountryId{"SZ"}, DrivingSide::Left, {TypeM}}, // Swaziland
{CountryId{"SZ"}, DrivingSide::Left, {TypeM}}, // Eswatini
{CountryId{"TD"}, DrivingSide::Right, {TypeC|TypeD|TypeE|TypeF}}, // Chad
{CountryId{"TG"}, DrivingSide::Right, {TypeC}}, // Togo
{CountryId{"TH"}, DrivingSide::Left, {TypeA|TypeB|TypeC|TypeF}}, // Thailand
......@@ -204,6 +208,7 @@ static const Country country_table[] = {
{CountryId{"VN"}, DrivingSide::Right, {TypeA|TypeC|TypeF|TypeG}}, // Vietnam
{CountryId{"VU"}, DrivingSide::Right, {TypeC|TypeG|TypeI}}, // Vanuatu
{CountryId{"WS"}, DrivingSide::Left, {TypeI}}, // Samoa
{CountryId{"XK"}, DrivingSide::Right, {TypeF}}, // Kosovo
{CountryId{"YE"}, DrivingSide::Right, {TypeA|TypeD|TypeG}}, // Yemen
{CountryId{"ZA"}, DrivingSide::Left, {TypeC|TypeD|TypeM|TypeN}}, // South Africa
{CountryId{"ZM"}, DrivingSide::Left, {TypeC|TypeD|TypeG}}, // Zambia
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment