Update app.py
Browse files
app.py
CHANGED
|
@@ -297,7 +297,7 @@ Provide a clear and concise answer focusing on the specific information requeste
|
|
| 297 |
return response
|
| 298 |
|
| 299 |
@st.cache_data(ttl=60) # Cache for 1 minute
|
| 300 |
-
def get_traffic_gdf(lat_min, lat_max, lon_min, lon_max, local_time_zone,
|
| 301 |
# Get cached flight data
|
| 302 |
json_dict = fetch_flight_data(lat_min, lat_max, lon_min, lon_max)
|
| 303 |
|
|
@@ -324,7 +324,7 @@ def get_traffic_gdf(lat_min, lat_max, lon_min, lon_max, local_time_zone, loc, fl
|
|
| 324 |
# Display information
|
| 325 |
st.title("Live Flight Tracker")
|
| 326 |
st.subheader('Flight Details', divider='rainbow')
|
| 327 |
-
st.write('Location: {0}'.format(
|
| 328 |
st.write('Current Local Time: {0}-{1}:'.format(local_time, local_time_zone))
|
| 329 |
st.write("Minimum_latitude is {0} and Maximum_latitude is {1}".format(lat_min, lat_max))
|
| 330 |
st.write("Minimum_longitude is {0} and Maximum_longitude is {1}".format(lon_min, lon_max))
|
|
|
|
| 297 |
return response
|
| 298 |
|
| 299 |
@st.cache_data(ttl=60) # Cache for 1 minute
|
| 300 |
+
def get_traffic_gdf(lat_min, lat_max, lon_min, lon_max, local_time_zone, _loc, flight_info):
|
| 301 |
# Get cached flight data
|
| 302 |
json_dict = fetch_flight_data(lat_min, lat_max, lon_min, lon_max)
|
| 303 |
|
|
|
|
| 324 |
# Display information
|
| 325 |
st.title("Live Flight Tracker")
|
| 326 |
st.subheader('Flight Details', divider='rainbow')
|
| 327 |
+
st.write('Location: {0}'.format(_loc))
|
| 328 |
st.write('Current Local Time: {0}-{1}:'.format(local_time, local_time_zone))
|
| 329 |
st.write("Minimum_latitude is {0} and Maximum_latitude is {1}".format(lat_min, lat_max))
|
| 330 |
st.write("Minimum_longitude is {0} and Maximum_longitude is {1}".format(lon_min, lon_max))
|