Spaces:
Runtime error
Runtime error
update no of firepost/hospitals
Browse files
app.py
CHANGED
@@ -455,9 +455,9 @@ def get_map_from_summary(summary_txt):
|
|
455 |
# print('nearest cam')
|
456 |
nearest_cam_df, cameraimg_df= get_nearest_camera((lat,lng), 3)
|
457 |
# print('ok. nearest fire')
|
458 |
-
nearest_fire_df = get_firestation_from_latlong((lat,lng),
|
459 |
# print('ok. nearest hosp')
|
460 |
-
nearest_hosp_df = get_hospital_from_latlong((lat,lng),
|
461 |
|
462 |
avg_lat = np.mean(cameraimg_df["Latitude"])
|
463 |
avg_lng = np.mean(cameraimg_df["Longitude"])
|
@@ -514,8 +514,8 @@ async def a_get_map_from_summary(summary_txt, get_num_cameras=3):
|
|
514 |
# cameraimg_df = call_api('http://datamall2.mytransport.sg/ltaodataservice/Traffic-Imagesv2?long=')
|
515 |
|
516 |
nearest_cam_df, cameraimg_df= await a_get_nearest_camera((lat,lng), get_num_cameras)
|
517 |
-
nearest_fire_df = get_firestation_from_latlong((lat,lng),
|
518 |
-
nearest_hosp_df = get_hospital_from_latlong((lat,lng),
|
519 |
|
520 |
avg_lat = np.mean(cameraimg_df["Latitude"])
|
521 |
avg_lng = np.mean(cameraimg_df["Longitude"])
|
|
|
455 |
# print('nearest cam')
|
456 |
nearest_cam_df, cameraimg_df= get_nearest_camera((lat,lng), 3)
|
457 |
# print('ok. nearest fire')
|
458 |
+
nearest_fire_df = get_firestation_from_latlong((lat,lng), 1)
|
459 |
# print('ok. nearest hosp')
|
460 |
+
nearest_hosp_df = get_hospital_from_latlong((lat,lng), 1)
|
461 |
|
462 |
avg_lat = np.mean(cameraimg_df["Latitude"])
|
463 |
avg_lng = np.mean(cameraimg_df["Longitude"])
|
|
|
514 |
# cameraimg_df = call_api('http://datamall2.mytransport.sg/ltaodataservice/Traffic-Imagesv2?long=')
|
515 |
|
516 |
nearest_cam_df, cameraimg_df= await a_get_nearest_camera((lat,lng), get_num_cameras)
|
517 |
+
nearest_fire_df = get_firestation_from_latlong((lat,lng), 1)
|
518 |
+
nearest_hosp_df = get_hospital_from_latlong((lat,lng), 1)
|
519 |
|
520 |
avg_lat = np.mean(cameraimg_df["Latitude"])
|
521 |
avg_lng = np.mean(cameraimg_df["Longitude"])
|