Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,6 @@ def obtener_datos_climaticos(lat, lon, variables):
|
|
| 38 |
resultado = {var: data.get(var, 'N/A') for var in variables}
|
| 39 |
resultado['temperature'] = data.get('temperature', 'N/A')
|
| 40 |
resultado['windspeed'] = data.get('windspeed', 'N/A')
|
| 41 |
-
resultado['weathercode'] = data.get('weathercode', 'N/A')
|
| 42 |
return resultado
|
| 43 |
else:
|
| 44 |
return None
|
|
@@ -48,7 +47,7 @@ def obtener_datos_climaticos(lat, lon, variables):
|
|
| 48 |
# ===========================
|
| 49 |
def crear_mapa(ciudades_seleccionadas, variable_minima, filtro_variable):
|
| 50 |
mapa = folium.Map(location=[39.8283, -98.5795], zoom_start=4, tiles='CartoDB positron')
|
| 51 |
-
variables_a_consultar = ["temperature", "windspeed"
|
| 52 |
|
| 53 |
for ciudad in ciudades_seleccionadas:
|
| 54 |
lat, lon = ciudades[ciudad]
|
|
|
|
| 38 |
resultado = {var: data.get(var, 'N/A') for var in variables}
|
| 39 |
resultado['temperature'] = data.get('temperature', 'N/A')
|
| 40 |
resultado['windspeed'] = data.get('windspeed', 'N/A')
|
|
|
|
| 41 |
return resultado
|
| 42 |
else:
|
| 43 |
return None
|
|
|
|
| 47 |
# ===========================
|
| 48 |
def crear_mapa(ciudades_seleccionadas, variable_minima, filtro_variable):
|
| 49 |
mapa = folium.Map(location=[39.8283, -98.5795], zoom_start=4, tiles='CartoDB positron')
|
| 50 |
+
variables_a_consultar = ["temperature", "windspeed"]
|
| 51 |
|
| 52 |
for ciudad in ciudades_seleccionadas:
|
| 53 |
lat, lon = ciudades[ciudad]
|