File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,15 +94,15 @@ def show_welcome_page():
9494
9595@app .get ("/find_image" , tags = ["Find Image" ])
9696async def find_image (
97- gps_point : tuple [str , str ],
97+ gps_point : tuple [float , float ],
9898 nuts_id : str ,
9999 year : int = Query (2021 , ge = 2018 , le = 2024 )
100100) -> str :
101101 """
102102 Find image path for a given NUTS3 and year.
103103
104104 Args:
105- gps_point (tuple[str, str ]): the gps point.
105+ gps_point (tuple[float, float ]): the gps point.
106106 nuts_id (str): The ID of the NUTS.
107107 year (int): The year of the satellite images.
108108 Returns:
@@ -119,7 +119,7 @@ async def find_image(
119119 if response .status_code == 200 :
120120 df = pd .read_parquet (url )
121121 else :
122- print (f"❌ No data for NUTS3='{ nuts3 } ' and year={ year } (HTTP { response .status_code } )" )
122+ print (f"❌ No data for NUTS3='{ nuts_id } ' and year={ year } (HTTP { response .status_code } )" )
123123 return None
124124
125125 # Création de la géométrie
You can’t perform that action at this time.
0 commit comments