周边配套计算库修改

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 -3
View File
@@ -16,16 +16,16 @@ administrative_mapping_conn = MAIN_MONGO_CLIENT.get_collection('fangjia_base', '
# 教育code
school_typecode = ["141200", "141201", "141202", "141203", "141204"]
small_type = ["学校", "高等院校", "中学", "小学", "幼儿园"]
def deal3(item):
location = [item['lng'], item['lat']]
item['school'] = poiutils.find_around_by_location(item['city_display'], location, school_typecode, 3000)
item['school'] = poiutils.find_around_by_location(item['city_display'], location, small_type, 3000)
return item
def deal(item):
location = [item['lng'], item['lat']]
item['school'] = poiutils.find_around_by_location(item['city_display'], location, school_typecode, 1000)
item['school'] = poiutils.find_around_by_location(item['city_display'], location, small_type, 1000)
return item