1
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
|
2
|
|
|
|
3
|
|
|
try: |
4
|
|
|
import logging |
5
|
|
|
import sys |
6
|
|
|
import os |
|
|
|
|
7
|
|
|
import json |
|
|
|
|
8
|
|
|
from osm_poi_matchmaker.libs.soup import save_downloaded_soup |
|
|
|
|
9
|
|
|
from osm_poi_matchmaker.libs.address import extract_street_housenumber_better_2, clean_city, clean_phone_to_str, \ |
|
|
|
|
10
|
|
|
clean_string |
11
|
|
|
from osm_poi_matchmaker.libs.geo import check_hu_boundary |
|
|
|
|
12
|
|
|
from osm_poi_matchmaker.libs.osm_tag_sets import POS_HU_GEN, PAY_CASH |
13
|
|
|
from osm_poi_matchmaker.utils.data_provider import DataProvider |
14
|
|
|
from osm_poi_matchmaker.utils.enums import FileType |
15
|
|
|
except ImportError as err: |
16
|
|
|
logging.error('Error %s import module: %s', __name__, err) |
17
|
|
|
logging.exception('Exception occurred') |
18
|
|
|
|
19
|
|
|
sys.exit(128) |
20
|
|
|
|
21
|
|
|
|
22
|
|
|
class hu_takko(DataProvider): |
|
|
|
|
23
|
|
|
|
24
|
|
|
def constains(self): |
25
|
|
|
self.link = '' |
26
|
|
|
self.tags = {'shop': 'clothes', 'operator': 'Takko Fashion Kft.', |
27
|
|
|
'operator:addr': '2040 Budaörs, Ébner György köz 4.', |
28
|
|
|
'ref:HU:company': '13-10-040628', 'ref:vatin:hu': '1335199-2-13', 'ref:vatin': 'HU1335199', |
|
|
|
|
29
|
|
|
'brand': 'Takko', 'contact:website': 'https://www.takko.com/hu-hu/', 'loyalty_card': 'yes', |
|
|
|
|
30
|
|
|
'air_conditioning': 'yes'} |
31
|
|
|
self.filetype = FileType.json |
32
|
|
|
self.filename = '{}.{}'.format( |
33
|
|
|
self.__class__.__name__, self.filetype.name) |
34
|
|
|
|
35
|
|
|
def types(self): |
36
|
|
|
hutakkocl = self.tags.copy() |
37
|
|
|
hutakkocl.update(POS_HU_GEN) |
38
|
|
|
hutakkocl.update(PAY_CASH) |
39
|
|
|
self.__types = [ |
40
|
|
|
{'poi_code': 'hutakkocl', 'poi_name': 'Takko', 'poi_type': 'shop', |
41
|
|
|
'poi_tags': hutakkocl, 'poi_url_base': 'https://takko.hu', 'poi_search_name': 'takko'}, |
42
|
|
|
] |
43
|
|
|
return self.__types |
44
|
|
|
|
45
|
|
|
def process(self): |
46
|
|
|
pass |
47
|
|
|
|