- weather: rename postcode => postalcode

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2022-01-22 01:44:42 +01:00
committed by Thilo Graf
parent 5117c78eec
commit 78ce911761
10 changed files with 19 additions and 19 deletions

View File

@@ -181,9 +181,9 @@ bool CWeather::GetWeatherDetails()
return false;
}
bool CWeather::FindCoords(std::string postcode, std::string country)
bool CWeather::FindCoords(std::string postalcode, std::string country)
{
std::string data = "http://api.openweathermap.org/geo/1.0/zip?zip=" + postcode + "," + country + "&appid=" + key;
std::string data = "http://api.openweathermap.org/geo/1.0/zip?zip=" + postalcode + "," + country + "&appid=" + key;
JSONCPP_STRING answer;
JSONCPP_STRING formattedErrors;
Json::CharReaderBuilder builder;