public Weather(String localisation) throws NoResultsException{
		begin = System.currentTimeMillis();
		try {		
			//Recuperation du code correspondant a la ville
			URL search_url = new URL(search_base_url+localisation);

			// Creation du parser
			SAXBuilder sxba = new SAXBuilder();
			
			// Parsing de l'url de recherche du code de la ville
			Document document = sxba.build(search_url);
			
			//Variable permettant de creer la requete de recuperation des donnees meteo
			String currentConditions = "cc=*";
			String day = "dayf="+3;
			String par = "par="+ServiceConfiguration.getInstance().getProperty("wcom_partnerID");
			String key = "key="+ServiceConfiguration.getInstance().getProperty("wcom_licenseKey");
			String unit ="unit="+ServiceConfiguration.getInstance().getProperty("wcom_unit");
			
			
			cityCode = document.getRootElement().getChild("loc").getAttribute("id").getValue();
			logger.info(weather_base_url+cityCode+"?"+currentConditions+"&"+day+"&"+par+"&"+key+"&"+unit);
			jours = new Element[3];
		
			URL weather_url = new URL(weather_base_url+cityCode+"?"+currentConditions+"&"+day+"&"+par+"&"+key+"&"+unit);
			// Creation du parser
			SAXBuilder sxbb = new SAXBuilder();
			// Parsing de l'url concernant la meteo
			Document documentb;
			documentb = sxbb.build(weather_url);
			List<Element> items = documentb.getRootElement().getChild("dayf").getChildren();
			for (Element element : items) {
				if(element.getName().contains("day")){
					this.jours[Integer.parseInt(element.getAttributeValue("d"))] = element;
				}
			}
			cc = documentb.getRootElement().getChild("cc");

		}catch (MalformedURLException e) {
			logger.error(e.getMessage());
		} catch (JDOMException e) {
			logger.error(e.getMessage());
		} catch (IOException e) {
			logger.error(e.getMessage());
		}catch (NullPointerException e) {
			if (cityCode == null) logger.error("Il n'y a pas de code correspondant à la ville "+localisation);
			else if (cc == null) logger.error("Localisation non trouvee");
			throw new NoResultsException(e.getMessage());
		}
		end = System.currentTimeMillis();
	}