private void init(ForecastIO fio){

		if(fio.hasFlags()){
			if(fio.getFlags().names().contains("darksky-unavailable"))
				this.flags.put("darksky-unavailable", toStringArray(fio.getFlags().get("darksky-unavailable").asArray()));

			if(fio.getFlags().names().contains("darksky-stations"))
				this.flags.put("darksky-stations", toStringArray(fio.getFlags().get("darksky-stations").asArray()));

			if(fio.getFlags().names().contains("datapoint-stations"))
				this.flags.put("datapoint-stations", toStringArray(fio.getFlags().get("datapoint-stations").asArray()));

			if(fio.getFlags().names().contains("isd-stations"))
				this.flags.put("isd-stations", toStringArray(fio.getFlags().get("isd-stations").asArray()));

			if(fio.getFlags().names().contains("lamp-stations"))
				this.flags.put("lamp-stations", toStringArray(fio.getFlags().get("lamp-stations").asArray()));

			if(fio.getFlags().names().contains("metar-stations"))
				this.flags.put("metar-stations", toStringArray(fio.getFlags().get("metar-stations").asArray()));

			//TODO metno-licenses

			if(fio.getFlags().names().contains("sources"))
				this.flags.put("sources", toStringArray(fio.getFlags().get("sources").asArray()));

			try {
				this.units = fio.getFlags().get("units").asString();
			}
			catch (NullPointerException npe) {
				this.units = "no data";
			}
		}
	}