Code Duplication    Length = 13-15 lines in 6 locations

osm_poi_matchmaker/dataproviders/hu_mol.py 1 location

@@ 26-40 (lines=15) @@
23
24
class hu_mol(DataProvider):
25
26
    def constains(self):
27
        self.link = 'http://toltoallomaskereso.mol.hu/hu/portlet/routing/along_latlng.json'
28
        self.fuel = {'amenity': 'fuel', 'fuel:diesel': 'yes', 'fuel:octane_95': 'yes', 'air_conditioning': 'yes'}
29
        self.tags = {'brand': 'MOL', 'operator': 'MOL Nyrt.',
30
                     'operator:addr': '1117 Budapest, Október huszonharmadika utca 18.',
31
                     'ref:vatin:hu': '10625790-4-44',
32
                     'contact:facebook': 'https://www.facebook.com/mol.magyarorszag/',
33
                     'contact:youtube': 'https://www.youtube.com/user/molgrouptv',
34
                     'contact:instagram': 'https://www.instagram.com/mol.magyarorszag/',
35
                     'brand:wikipedia': 'hu:MOL Magyar Olaj- és Gázipari Nyrt.', 'brand:wikidata': 'Q549181',
36
                     'ref:HU:company': '01-10-041683'}
37
        self.waterway_fuel = {'waterway': 'fuel'}
38
        self.filetype = FileType.json
39
        self.filename = '{}.{}'.format(
40
            self.__class__.__name__, self.filetype.name)
41
42
    def types(self):
43
        humolfu = self.tags.copy()

osm_poi_matchmaker/dataproviders/hu_rossmann.py 1 location

@@ 26-38 (lines=13) @@
23
24
class hu_rossmann(DataProvider):
25
26
    def constains(self):
27
        self.link = 'https://www.rossmann.hu/uzletkereso'
28
        self.tags = {'shop': 'chemist', 'operator': 'Rossmann Magyarország Kft.',
29
                     'operator:addr': '2225 Üllő, Zsaróka út 8.', 'ref:vatin:hu': '11149769-2-44',
30
                     'ref:vatin': 'HU11149769', 'brand': 'Rossmann', 'brand:wikidata': 'Q316004',
31
                     'brand:wikipedia': 'de:Dirk Rossmann GmbH', 'contact:email': '[email protected]',
32
                     'phone': '+36 29 889-800;+36 70 4692 800',
33
                     'contact:facebook': 'https://www.facebook.com/Rossmann.hu',
34
                     'contact:youtube': 'https://www.youtube.com/channel/UCmUCPmvMLL3IaXRBtx7-J7Q',
35
                     'contact:instagram': 'https://www.instagram.com/rossmann_hu', 'air_conditioning': 'yes'}
36
        self.filetype = FileType.html
37
        self.filename = '{}.{}'.format(
38
            self.__class__.__name__, self.filetype.name)
39
40
    def types(self):
41
        hurossmche = self.tags.copy()

osm_poi_matchmaker/dataproviders/hu_posta.py 1 location

@@ 24-36 (lines=13) @@
21
22
class hu_posta(DataProvider):
23
24
    def constains(self):
25
        self.link = 'http://httpmegosztas.posta.hu/PartnerExtra/OUT/PostInfo.xml'
26
        self.tags = {'brand': 'Magyar Posta', 'operator': 'Magyar Posta Zrt.',
27
                     'operator:addr': '1138 Budapest, Dunavirág utca 2-6.', 'ref:vatin:hu': '10901232-2-44',
28
                     'ref:vatin': 'HU10901232', 'brand:wikipedia': 'hu:Magyar Posta Zrt.', 'brand:wikidata': 'Q145614',
29
                     'contact:email': '[email protected]', 'phone': '+3617678200',
30
                     'contact:facebook': 'https://www.facebook.com/MagyarPosta',
31
                     'contact:youtube': 'https://www.youtube.com/user/magyarpostaofficial',
32
                     'contact:instagram': 'https://www.instagram.com/magyar_posta_zrt', 'payment:cash': 'yes',
33
                     'payment:debit_cards': 'yes'}
34
        self.filetype = FileType.xml
35
        self.filename = '{}.{}'.format(
36
            self.__class__.__name__, self.filetype.name)
37
38
    def types(self):
39
        hupostapo = {'amenity': 'post_office'}

osm_poi_matchmaker/dataproviders/hu_penny_market.py 1 location

@@ 23-35 (lines=13) @@
20
21
class hu_penny_market(DataProvider):
22
23
    def constains(self):
24
        self.link = 'https://www.penny.hu/stores-map-data'
25
        self.tags = {'shop': 'supermarket', 'operator': 'Penny Market Kft.', 'brand': 'Penny Market',
26
                     'brand:wikidata': 'Q284688', 'brand:wikipedia': 'en:Penny (supermarket)',
27
                     'internet_access': 'wlan', 'internet_access:fee': 'no', 'internet_access:ssid': 'PENNY FREE WLAN',
28
                     'contact:email': '[email protected]',
29
                     'contact:facebook': 'https://www.facebook.com/PennyMarketMagyarorszag',
30
                     'contact:instagram': 'https://www.instagram.com/pennymarkethu',
31
                     'contact:youtube': 'https://www.youtube.com/channel/UCSy0KKUrDxVWkx8qicky_pQ',
32
                     'ref:vatin:hu': '10969629-2-44', 'ref:vatin': 'HU10969629'}
33
        self.filetype = FileType.json
34
        self.filename = '{}.{}'.format(
35
            self.__class__.__name__, self.filetype.name)
36
37
    def types(self):
38
        hupennysup = self.tags.copy()

osm_poi_matchmaker/dataproviders/hu_yves_rocher.py 1 location

@@ 23-35 (lines=13) @@
20
21
class hu_yves_rocher(DataProvider):
22
23
    def constains(self):
24
        self.link = 'https://storelocator.yves-rocher.eu/api/v1/map/stores'
25
        self.tags = {'shop': 'cosmetics', 'operator': 'Yves Rocher Hungary Kft. ',
26
                     'brand': 'Yves Rocher', 'brand:wikidata': 'Q28496595',
27
                     'brand:wikipedia': 'en:Yves Rocher (company)', 'contact:email': '[email protected]',
28
                     'contact:facebook': 'https://www.facebook.com/YvesRocherHungary/',
29
                     'contact:youtube': 'https://www.youtube.com/channel/UC6GA7lucPWgbNlC_MoomB9g',
30
                     'contact:instagram': 'https://www.instagram.com/yves_rocher_magyarorszag/',
31
                     'operator:addr': '1132 Budapest, Váci út 20-26.', 'ref:vatin': 'HU10618646',
32
                     'ref:vatin:hu': '10618646-2-41', 'ref:HU:company': '01-09-079930', 'air_conditioning': 'yes'}
33
        self.filetype = FileType.json
34
        self.filename = '{}.{}'.format(
35
            self.__class__.__name__, self.filetype.name)
36
37
    def types(self):
38
        huyvesrcos = self.tags.copy()

osm_poi_matchmaker/dataproviders/hu_foxpost.py 1 location

@@ 23-35 (lines=13) @@
20
21
class hu_foxpost(DataProvider):
22
23
    def constains(self):
24
        self.link = 'https://cdn.foxpost.hu/foxpost_terminals_extended_v3.json'
25
        self.tags = {'brand': 'Foxpost', 'operator': 'FoxPost Zrt.',
26
                     'operator:addr': '3200 Gyöngyös, Batsányi János utca 9.', 'ref:vatin': 'HU25034644',
27
                     'ref:vatin:hu': '25034644-2-10', 'ref:HU:company': '10 10 020309',
28
                     'contact:facebook': 'https://www.facebook.com/foxpostzrt',
29
                     'contact:youtube': 'https://www.youtube.com/channel/UC3zt91sNKPimgA32Nmcu97w',
30
                     'contact:email': '[email protected]', 'phone': '+36 1 999 03 69',
31
                     'payment:contactless': 'yes', 'payment:mastercard': 'yes', 'payment:visa': 'yes',
32
                     'payment:cash': 'no', }
33
        self.filetype = FileType.json
34
        self.filename = '{}.{}'.format(
35
            self.__class__.__name__, self.filetype.name)
36
37
    def types(self):
38
        hufoxpocso = {'amenity': 'vending_machine',