openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
http://openfoodfacts.github.io/openfoodfacts-server/
GNU Affero General Public License v3.0
660 stars 389 forks source link

Quality facets - Products with a given barcode country prefix which don't have that country in countries #1088

Open teolemon opened 6 years ago

teolemon commented 6 years ago

What

Products with a given barcode country prefix which don't have that country in countries

Code pointer

lib/ProductOpener/DataQuality*.pm

Part of

hangy commented 6 years ago

What's the most appropriate location field? The GS1 prefix only specifies the country that the company that produces the product is located/headquarted in. There is no necessary relation to a manufacturing place or selling country, as far as I can see.

teolemon commented 6 years ago

{"country":"United States" , "barcode" : "000 – 019"},
{"country":"Canada" , "barcode" : "000 – 019"}, {"country":"United States drugs" , "barcode" : "030 – 039"},
{"country":"United States and Canada" , "barcode" : "060 – 099"},
{"country":"United States" , "barcode" : "100 – 139"},
{"country":"France and Monaco" , "barcode" : "300 – 379"},
{"country":"Bulgaria" , "barcode" : "380"},
{"country":"Slovenia" , "barcode" : "383"},
{"country":"Croatia" , "barcode" : "385"},
{"country":"Bosnia and Herzegovina" , "barcode" : "387"},
{"country":"Montenegro" , "barcode" : "389"},
{"country":"Kosovo" , "barcode" : "390"},
{"country":"Germany" , "barcode" : "400 – 440"},
{"country":"Japan" , "barcode" : "450 – 459"},
{"country":"Russia" , "barcode" : "460 – 469"},
{"country":"Kyrgyzstan" , "barcode" : "470"},
{"country":"Taiwan" , "barcode" : "471"},
{"country":"Estonia" , "barcode" : "474"},
{"country":"Latvia" , "barcode" : "475"},
{"country":"Azerbaijan" , "barcode" : "476"},
{"country":"Lithuania" , "barcode" : "477"},
{"country":"Uzbekistan" , "barcode" : "478"},
{"country":"Sri Lanka" , "barcode" : "479"},
{"country":"Philippines" , "barcode" : "480"},
{"country":"Belarus" , "barcode" : "481"},
{"country":"Ukraine" , "barcode" : "482"},
{"country":"Turkmenistan" , "barcode" : "483"},
{"country":"Moldova" , "barcode" : "484"},
{"country":"Armenia" , "barcode" : "485"},
{"country":"Georgia" , "barcode" : "486"},
{"country":"Kazakhstan" , "barcode" : "487"},
{"country":"Tajikistan" , "barcode" : "488"},
{"country":"Hong Kong" , "barcode" : "489"},
{"country":"Japan" , "barcode" : "490 – 499"},
{"country":"United Kingdom" , "barcode" : "500 – 509"},
{"country":"Greece" , "barcode" : "520 – 521"},
{"country":"Lebanon" , "barcode" : "528"},
{"country":"Cyprus" , "barcode" : "529"},
{"country":"Albania" , "barcode" : "530"},
{"country":"Macedonia" , "barcode" : "531"},
{"country":"Malta" , "barcode" : "535"},
{"country":"Republic of Ireland" , "barcode" : "539"},
{"country":"Belgium and Luxembourg" , "barcode" : "540 – 549"},
{"country":"Portugal" , "barcode" : "560"},
{"country":"Iceland" , "barcode" : "569"},
{"country":"Denmark" , "barcode" : "570 – 579"},
{"country":"Faroe Islands" , "barcode" : "570 – 579"},
{"country":"Greenland" , "barcode" : "570 – 579"},
{"country":"Poland" , "barcode" : "590"},
{"country":"Romania" , "barcode" : "594"},
{"country":"Hungary" , "barcode" : "599"},
{"country":"South Africa" , "barcode" : "600 – 601"},
{"country":"Ghana" , "barcode" : "603"},
{"country":"Senegal" , "barcode" : "604"},
{"country":"Bahrain" , "barcode" : "608"},
{"country":"Mauritius" , "barcode" : "609"},
{"country":"Morocco" , "barcode" : "611"},
{"country":"Algeria" , "barcode" : "613"},
{"country":"Nigeria" , "barcode" : "615"},
{"country":"Kenya" , "barcode" : "616"},
{"country":"Ivory Coast" , "barcode" : "618"},
{"country":"Tunisia" , "barcode" : "619"},
{"country":"Tanzania" , "barcode" : "620"},
{"country":"Syria" , "barcode" : "621"},
{"country":"Egypt" , "barcode" : "622"},
{"country":"Brunei" , "barcode" : "623"},
{"country":"Libya" , "barcode" : "624"},
{"country":"Jordan" , "barcode" : "625"},
{"country":"Iran" , "barcode" : "626"},
{"country":"Kuwait" , "barcode" : "627"},
{"country":"Saudi Arabia" , "barcode" : "628"},
{"country":"United Arab Emirates" , "barcode" : "629"},
{"country":"Finland" , "barcode" : "640 – 649"},
{"country":"China" , "barcode" : "690 – 699"},
{"country":"Norway" , "barcode" : "700 – 709"},
{"country":"Israel" , "barcode" : "729"},
{"country":"Sweden : EAN/GS1 Sweden" , "barcode" : "730 – 739"},
{"country":"Guatemala" , "barcode" : "740"},
{"country":"El Salvador" , "barcode" : "741"},
{"country":"Honduras" , "barcode" : "742"},
{"country":"Nicaragua" , "barcode" : "743"},
{"country":"Costa Rica" , "barcode" : "744"},
{"country":"Panama" , "barcode" : "745"},
{"country":"Dominican Republic" , "barcode" : "746"},
{"country":"Mexico" , "barcode" : "750"},
{"country":"Canada" , "barcode" : "754 – 755"},
{"country":"Venezuela" , "barcode" : "759"},
{"country":"Switzerland and Liechtenstein" , "barcode" : "760 – 769"},
{"country":"Colombia" , "barcode" : "770 – 771"},
{"country":"Uruguay" , "barcode" : "773"},
{"country":"Peru" , "barcode" : "775"},
{"country":"Bolivia" , "barcode" : "777"},
{"country":"Argentina" , "barcode" : "778 – 779"},
{"country":"Chile" , "barcode" : "780"},
{"country":"Paraguay" , "barcode" : "784"},
{"country":"Ecuador" , "barcode" : "786"},
{"country":"Brazil" , "barcode" : "789 – 790"},
{"country":"Italy, San Marino and Vatican City" , "barcode" : "800 – 839"},
{"country":"Spain and Andorra" , "barcode" : "840 – 849"},
{"country":"Cuba" , "barcode" : "850"},
{"country":"Slovakia" , "barcode" : "858"},
{"country":"Czech Republic" , "barcode" : "859"},
{"country":"Serbia" , "barcode" : "860"},
{"country":"Mongolia" , "barcode" : "865"},
{"country":"North Korea" , "barcode" : "867"},
{"country":"Turkey" , "barcode" : "868 – 869"},
{"country":"Netherlands" , "barcode" : "870 – 879"},
{"country":"South Korea" , "barcode" : "880"},
{"country":"Cambodia" , "barcode" : "884"},
{"country":"Thailand" , "barcode" : "885"},
{"country":"Singapore" , "barcode" : "888"},
{"country":"India" , "barcode" : "890"},
{"country":"Vietnam" , "barcode" : "893"},
{"country":"Pakistan" , "barcode" : "896"},
{"country":"Indonesia" , "barcode" : "899"},
{"country":"Austria" , "barcode" : "900 – 919"},
{"country":"Australia" , "barcode" : "930 – 939"},
{"country":"New Zealand" , "barcode" : "940 – 949"},
{"country":"Malaysia" , "barcode" : "955"},
{"country":"Macau" , "barcode" : "958"}