plebias commited on
Commit
0243df6
·
verified ·
1 Parent(s): 8cdcb3a

update no of firepost/hospitals

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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), 3)
459
  # print('ok. nearest hosp')
460
- nearest_hosp_df = get_hospital_from_latlong((lat,lng), 3)
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), 3)
518
- nearest_hosp_df = get_hospital_from_latlong((lat,lng), 3)
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"])