周边配套计算库修改

This commit is contained in:
沈健
2024-12-23 15:26:44 +08:00
parent 075577afd7
commit 528a257113
7 changed files with 120 additions and 39 deletions
+12 -3
View File
@@ -26,14 +26,23 @@ bank_typecode = ["160100", "160101", "160102", "160103", "160104", "160105", "16
"160144",
"160145", "160146", "160147", "160148", "160149", "160150", "160151", "160152", "160200"]
small_type = ["银行", "中国人民银行", "国家开发银行", "中国进出口银行", "中国银行", "中国工商银行", "中国建设银行",
"中国农业银行", "交通银行", "招商银行", "华夏银行", "中信银行", "中国民生银行", "中国光大银行",
"上海银行", "上海浦东发展银行", "平安银行", "兴业银行", "北京银行", "广发银行", "农村商业银行",
"香港恒生银行", "东亚银行", "花旗银行", "渣打银行", "汇丰银行", "荷兰银行", "美国运通银行",
"瑞士友邦银行", "美国银行", "蒙特利尔银行", "纽约银行", "苏格兰皇家银行", "法国兴业银行", "德意志银行",
"日本三菱东京日联银行", "巴克莱银行", "摩根大通银行", "中国邮政储蓄银行", "香港星展银行", "南洋商业银行",
"上海商业银行", "永亨银行", "香港永隆银行", "创兴银行", "大新银行", "中信银行(国际)", "大众银行(香港)",
"北京农商银行", "上海农商银行", "广州农商银行", "深圳农村商业银行", "银行相关"]
def deal3(item):
location = [item['lng'], item['lat']]
item['bank'] = poiutils.find_around_by_location(item['city_display'], location, bank_typecode, 3000)
item['bank'] = poiutils.find_around_by_location(item['city_display'], location, small_type, 3000)
return item
def deal(item):
location = [item['lng'], item['lat']]
item['bank'] = poiutils.find_around_by_location(item['city_display'], location, bank_typecode, 1000)
item['bank'] = poiutils.find_around_by_location(item['city_display'], location, small_type, 1000)
return item
def do():
@@ -113,4 +122,4 @@ def sync1():
if len(actions) > 0:
district_facilitys_conn.bulk_write(actions)
actions.clear()
log.info(city + '周边银行入库完毕')
log.info(city + '周边银行入库完毕')