周边配套计算库修改

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
+3 -2
View File
@@ -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():