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

Added VIPSWeatherProxy URL as system property

parent e870e44d
No related branches found
No related tags found
No related merge requests found
...@@ -34,8 +34,8 @@ import no.nibio.vips.logic.entity.PointOfInterest; ...@@ -34,8 +34,8 @@ import no.nibio.vips.logic.entity.PointOfInterest;
* @author Tor-Einar Skog <tor-einar.skog@nibio.no> * @author Tor-Einar Skog <tor-einar.skog@nibio.no>
*/ */
public class FMIWeatherForecastprovider implements WeatherForecastProvider { public class FMIWeatherForecastprovider implements WeatherForecastProvider {
private final static String FMI_VIPS_WEATHER_PROXY_URL = "http://localhost:8080/VIPSWeatherProxy/rest/forecasts/fmi?longitude={0}&latitude={1}&altitude={2}"; private final static String FMI_VIPS_WEATHER_PROXY_URL = System.getProperty("no.nibio.vips.logic.weather.VIPS_WEATHER_PROXY_BASE_URL") + "/rest/forecasts/fmi?longitude={0}&latitude={1}&altitude={2}";
@Override @Override
public List<WeatherObservation> getWeatherForecasts(PointOfInterest location) throws ParseWeatherDataException { public List<WeatherObservation> getWeatherForecasts(PointOfInterest location) throws ParseWeatherDataException {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment