Skip to content
Snippets Groups Projects
Commit 576ce601 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Updating the YR forecast provider

parent b255cacd
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment