周边配套计算库修改

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
+4 -4
View File
@@ -16,17 +16,17 @@ surrounding_facilities_conn = MAIN_MONGO_CLIENT.get_collection('fangjia_base', '
# 商场code
supermarket_typecode = ["060100","060101","060102"]
supermarket_typecode = ["060100", "060101", "060102"]
small_type = ["商场", "购物中心", "普通商场"]
def deal3(item):
location = [item['lng'], item['lat']]
item['supermarket'] = poiutils.find_around_by_location(item['city_display'], location, supermarket_typecode, 3000)
item['supermarket'] = poiutils.find_around_by_location(item['city_display'], location, small_type, 3000)
return item
def deal(item):
location = [item['lng'], item['lat']]
item['supermarket'] = poiutils.find_around_by_location(item['city_display'], location, supermarket_typecode, 1000)
item['supermarket'] = poiutils.find_around_by_location(item['city_display'], location, small_type, 1000)
return item
def do():