From 241597d1ae7ec935e4743d511861cd78797e7bb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=81=A5?= Date: Mon, 17 Feb 2025 14:55:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/poi/business/district_school.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dags/poi/business/district_school.py b/dags/poi/business/district_school.py index 61996f8..d26fb45 100644 --- a/dags/poi/business/district_school.py +++ b/dags/poi/business/district_school.py @@ -21,11 +21,17 @@ small_type = ["学校", "高等院校", "中学", "小学", "幼儿园"] def deal3(item): location = [item['lng'], item['lat']] item['school'] = poiutils.find_around_by_location(item['city_display'], location, small_type, 3000) + item['kindergarten'] = poiutils.find_around_by_location(item['city_display'], location, ["幼儿园"], 3000) + item['primary_school'] = poiutils.find_around_by_location(item['city_display'], location, ["小学"], 3000) + item['middle_school'] = poiutils.find_around_by_location(item['city_display'], location, ["中学"], 3000) return item def deal(item): location = [item['lng'], item['lat']] item['school'] = poiutils.find_around_by_location(item['city_display'], location, small_type, 1000) + item['kindergarten'] = poiutils.find_around_by_location(item['city_display'], location, ["幼儿园"], 1000) + item['primary_school'] = poiutils.find_around_by_location(item['city_display'], location, ["小学"], 1000) + item['middle_school'] = poiutils.find_around_by_location(item['city_display'], location, ["中学"], 1000) return item