周边配套计算库修改
This commit is contained in:
@@ -18,16 +18,16 @@ administrative_mapping_conn = MAIN_MONGO_CLIENT.get_collection('fangjia_base', '
|
||||
|
||||
# 医院code
|
||||
hospital_typecode = ["090100", "090101", "090200"]
|
||||
|
||||
small_type = ["综合医院", "三级甲等医院", "专科医院"]
|
||||
|
||||
def deal3(item):
|
||||
location = [item['lng'], item['lat']]
|
||||
item['hospital'] = poiutils.find_around_by_location(item['city_display'], location, hospital_typecode, 3000)
|
||||
item['hospital'] = poiutils.find_around_by_location(item['city_display'], location, small_type, 3000)
|
||||
return item
|
||||
|
||||
def deal(item):
|
||||
location = [item['lng'], item['lat']]
|
||||
item['hospital'] = poiutils.find_around_by_location(item['city_display'], location, hospital_typecode, 1000)
|
||||
item['hospital'] = poiutils.find_around_by_location(item['city_display'], location, small_type, 1000)
|
||||
return item
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user