Commit e1685c08 authored by Volker Krause's avatar Volker Krause
Browse files

Update weather API endpoint

Version 1.9 has been discontinued, but 2.0/classic returns the same
format as far as our use-case is concerned.
parent dbfc05fc
......@@ -180,7 +180,7 @@ void WeatherForecastManager::fetchNext()
QUrl url;
url.setScheme(QStringLiteral("https"));
url.setHost(QStringLiteral("api.met.no"));
url.setPath(QStringLiteral("/weatherapi/locationforecast/1.9/"));
url.setPath(QStringLiteral("/weatherapi/locationforecast/2.0/classic"));
QUrlQuery query;
query.addQueryItem(QStringLiteral("lat"), QString::number(tile.latitude()));
query.addQueryItem(QStringLiteral("lon"), QString::number(tile.longitude()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment