From 576ce60126d164f93d8cfc145b63b25932298a8b Mon Sep 17 00:00:00 2001 From: Tor-Einar Skog <tor-einar.skog@nibio.no> Date: Mon, 14 Dec 2020 13:09:22 +0100 Subject: [PATCH] Updating the YR forecast provider --- .../no/nibio/vips/util/weather/YrWeatherForecastProvider.java | 2 +- .../nibio/vips/util/weather/YrWeatherForecastProviderTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 c3db63a0..d3747591 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 4188d964..811158e8 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(); -- GitLab