diff --git a/src/main/java/no/nibio/vips/util/weather/YrWeatherForecastProvider.java b/src/main/java/no/nibio/vips/util/weather/YrWeatherForecastProvider.java index c3db63a0d019855044cb9f7722e7ac0dcd58f983..d37475912fb23421ceaf2801d36a9a0723b0123a 100755 --- a/src/main/java/no/nibio/vips/util/weather/YrWeatherForecastProvider.java +++ b/src/main/java/no/nibio/vips/util/weather/YrWeatherForecastProvider.java @@ -52,7 +52,7 @@ import org.xml.sax.SAXException; */ public class YrWeatherForecastProvider implements WeatherForecastProvider{ - private final static String YR_API_URL = "https://api.met.no/weatherapi/locationforecastlts/1.3/?lat={0};lon={1};msl={2}"; + private final static String YR_API_URL = "https://api.met.no/weatherapi/locationforecast/1.9/?lat={0};lon={1};msl={2}"; @Override public List<WeatherObservation> getWeatherForecasts(PointOfInterest location) throws ParseWeatherDataException diff --git a/src/test/java/no/nibio/vips/util/weather/YrWeatherForecastProviderTest.java b/src/test/java/no/nibio/vips/util/weather/YrWeatherForecastProviderTest.java index 4188d964d3d2f5bb00cf9a159a921946d1ac8c2d..811158e80a41e620a4c27f72a4b7675f11700e07 100755 --- a/src/test/java/no/nibio/vips/util/weather/YrWeatherForecastProviderTest.java +++ b/src/test/java/no/nibio/vips/util/weather/YrWeatherForecastProviderTest.java @@ -63,7 +63,7 @@ public class YrWeatherForecastProviderTest { */ @Test public void testGetWeatherForecasts() throws Exception { - System.out.println("getWeatherForecasts"); + System.out.println("getWeatherForecasts"); PointOfInterestWeatherStation weatherStation = new PointOfInterestWeatherStation(); //Testing in Bosnia (Rodoc, Mostar) GISUtil gisUtil = new GISUtil();