周边配套计算库修改
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user