新增学校
This commit is contained in:
@@ -48,8 +48,8 @@ def deal(actions, item):
|
|||||||
|
|
||||||
bus_doc = poiutils.find_nearest_by_location(curr_city, 1000, [lng, lat], "交通", "地铁")
|
bus_doc = poiutils.find_nearest_by_location(curr_city, 1000, [lng, lat], "交通", "地铁")
|
||||||
if pd.notna(bus_doc):
|
if pd.notna(bus_doc):
|
||||||
doc_info['nearest_metro_station_distance'] = int(bus_doc['sort'][0])
|
doc_info['nearest_subway_station_distance'] = int(bus_doc['sort'][0])
|
||||||
doc_info['nearest_metro_station'] = bus_doc['_source']['name']
|
doc_info['nearest_subway_station'] = bus_doc['_source']['name']
|
||||||
|
|
||||||
action = {
|
action = {
|
||||||
"_op_type": "update",
|
"_op_type": "update",
|
||||||
|
|||||||
Reference in New Issue
Block a user