Translations:Dimensionner la récupération d'eau de pluie pour être autonome/82/en

def station_la_plus_proche(x, y, stations):

   """
   Find closest meteorological station using x and y coordinates (latitude and longitude).
   """
   distance_min = float('inf')
   station_proche = None
   
   for station in stations:
       lat_station = float(station['Latitude'])
       lon_station = float(station['Longitude'])
       d = distance(x, y, lat_station, lon_station)
       if d < distance_min:
           distance_min = d
           station_proche = station
   
   return station_proche