Code Duplication    Length = 10-13 lines in 3 locations

osm_poi_matchmaker/dataproviders/hu_mol.py 1 location

@@ 32-44 (lines=13) @@
29
        self.filetype = FileType.json
30
        self.filename = '{}.{}'.format(self.__class__.__name__, self.filetype.name)
31
32
    def types(self):
33
        self.__types = [{'poi_code': 'humolfu', 'poi_name': 'MOL', 'poi_type': 'fuel',
34
            'poi_tags': "{'amenity': 'fuel', 'brand': 'MOL', 'operator': 'MOL Nyrt.', "
35
            "'operator:addr': '1117 Budapest, Október huszonharmadika utca 18.', 'ref:vatin:hu': '10625790-4-44', "
36
            "'contact:facebook': 'https://www.facebook.com/mol.magyarorszag/', "
37
            "'contact:youtube': 'https://www.youtube.com/user/molgrouptv', "
38
            "'contact:instagram': 'https://www.instagram.com/mol.magyarorszag/', "
39
            "'brand:wikipedia': 'hu:MOL Magyar Olaj- és Gázipari Nyrt.', 'brand:wikidata': 'Q549181', "
40
            "'ref:HU:company': '01-10-041683', " + POS_HU_GEN + PAY_CASH + "'fuel:diesel': 'yes', "
41
            "'fuel:octane_95': 'yes', 'air_conditioning': 'yes'}",
42
            'poi_url_base': 'https://www.mol.hu', 'poi_search_name': 'mol', 'osm_search_distance_perfect': 2000,
43
            'osm_search_distance_safe': 300, 'osm_search_distance_unsafe': 60}]
44
        return self.__types
45
46
47
    def process(self):

osm_poi_matchmaker/dataproviders/hu_rossmann.py 1 location

@@ 31-41 (lines=11) @@
28
        self.filetype = FileType.html
29
        self.filename = '{}.{}'.format(self.__class__.__name__, self.filetype.name)
30
31
    def types(self):
32
        self.__types = [{'poi_code': 'hurossmche', 'poi_name': 'Rossmann', 'poi_type': 'chemist',
33
                 'poi_tags': "{'shop': 'chemist', 'operator': 'Rossmann Magyarország Kft.', \
34
                 'operator:addr': '2225 Üllő, Zsaróka út 8.', 'ref:vatin:hu': '11149769-2-44', \
35
                 'ref:vatin': 'HU11149769', 'brand':'Rossmann',  'brand:wikidata': 'Q316004', \
36
                 'brand:wikipedia': 'de:Dirk Rossmann GmbH', 'contact:email': '[email protected]', \
37
                 'phone': '+36 29 889-800;+36 70 4692 800', 'contact:facebook':'https://www.facebook.com/Rossmann.hu', \
38
                 'contact:youtube': 'https://www.youtube.com/channel/UCmUCPmvMLL3IaXRBtx7-J7Q', \
39
                 'contact:instagram':'https://www.instagram.com/rossmann_hu', " + POS_HU_GEN + PAY_CASH + "'air_conditioning': 'yes'}",
40
                 'poi_url_base': 'https://www.rossmann.hu', 'poi_search_name': 'rossmann', 'osm_search_distance_perfect': 2000, 'osm_search_distance_safe': 200, 'osm_search_distance_unsafe': 3}]
41
        return self.__types
42
43
    def process(self):
44
        try:

osm_poi_matchmaker/dataproviders/hu_benu.py 1 location

@@ 30-39 (lines=10) @@
27
        self.filetype = FileType.json
28
        self.filename = '{}.{}'.format(self.__class__.__name__, self.filetype.name)
29
30
    def types(self):
31
        self.__types = [{'poi_code': 'hubenupha', 'poi_name': 'Benu gyógyszertár', 'poi_type': 'pharmacy',
32
             'poi_tags': "{'amenity': 'pharmacy', 'brand': 'Benu gyógyszertár', 'dispensing': 'yes', "
33
             + POS_HU_GEN + PAY_CASH + " 'contact:facebook':'https://www.facebook.com/BENUgyogyszertar', "
34
             "'contact:youtube': 'https://www.youtube.com/channel/UCBLjL10QMtRHdkak0h9exqg', "
35
             "'air_conditioning': 'yes'}",
36
             'poi_url_base': 'https://benu.hu', 'poi_search_name': '(benu gyogyszertár|benu)',
37
             'osm_search_distance_perfect': 2000, 'osm_search_distance_safe': 200,
38
             'osm_search_distance_unsafe': 20, 'preserve_original_name': True}]
39
        return self.__types
40
41
    def process(self):
42
        try: