周边配套计算库修改
This commit is contained in:
@@ -16,16 +16,17 @@ administrative_mapping_conn = MAIN_MONGO_CLIENT.get_collection('fangjia_base', '
|
||||
|
||||
# 交通code
|
||||
bus_typecode = ["150700"]
|
||||
small_type = ["公交车站相关"]
|
||||
|
||||
|
||||
def deal3(item):
|
||||
location = [item['lng'], item['lat']]
|
||||
item['bus'] = poiutils.find_around_by_location(item['city_display'], location, bus_typecode, 3000)
|
||||
item['bus'] = poiutils.find_around_by_location_for_bus(item['city_display'], location, small_type, 3000)
|
||||
return item
|
||||
|
||||
def deal(item):
|
||||
location = [item['lng'], item['lat']]
|
||||
item['bus'] = poiutils.find_around_by_location(item['city_display'], location, bus_typecode, 1000)
|
||||
item['bus'] = poiutils.find_around_by_location_for_bus(item['city_display'], location, small_type, 1000)
|
||||
return item
|
||||
|
||||
def do():
|
||||
|
||||
Reference in New Issue
Block a user