KWeatherCore::LocationQueryResult
#include <locationqueryresult.h>
Properties | |
QString | countryCode |
QString | countryName |
QString | geonameId |
qreal | latitude |
qreal | longitude |
QString | name |
QString | toponymName |
Public Member Functions | |
LocationQueryResult (const LocationQueryResult &other) | |
LocationQueryResult (double latitude, double longitude, QString toponymName=QString(), QString name=QString(), QString countryCode=QString(), QString geonameId=QString(), std::optional< QString > subdivision=std::nullopt) | |
LocationQueryResult (LocationQueryResult &&other) noexcept | |
const QString & | countryCode () const |
QString | countryName () const |
const QString & | geonameId () const |
double | latitude () const |
double | longitude () const |
const QString & | name () const |
LocationQueryResult & | operator= (const LocationQueryResult &other) |
LocationQueryResult & | operator= (LocationQueryResult &&other) noexcept |
const std::optional< QString > & | subdivision () const |
const QString & | toponymName () const |
Detailed Description
Class represents location query result.
This is a class to hold general information about a location
- See also
- LocationQuery
Definition at line 25 of file locationqueryresult.h.
Property Documentation
◆ countryCode
|
read |
Definition at line 32 of file locationqueryresult.h.
◆ countryName
|
read |
Definition at line 33 of file locationqueryresult.h.
◆ geonameId
|
read |
Definition at line 34 of file locationqueryresult.h.
◆ latitude
|
read |
Definition at line 28 of file locationqueryresult.h.
◆ longitude
|
read |
Definition at line 29 of file locationqueryresult.h.
◆ name
|
read |
Definition at line 31 of file locationqueryresult.h.
◆ toponymName
|
read |
Definition at line 30 of file locationqueryresult.h.
Constructor & Destructor Documentation
◆ LocationQueryResult() [1/3]
KWeatherCore::LocationQueryResult::LocationQueryResult | ( | ) |
Definition at line 23 of file locationqueryresult.cpp.
◆ LocationQueryResult() [2/3]
KWeatherCore::LocationQueryResult::LocationQueryResult | ( | double | latitude, |
double | longitude, | ||
QString | toponymName = QString(), | ||
QString | name = QString(), | ||
QString | countryCode = QString(), | ||
QString | geonameId = QString(), | ||
std::optional< QString > | subdivision = std::nullopt ) |
LocationQueryResult construct location result with given data.
- Parameters
-
latitude latitude longitude longitude toponymName toponym name of location, detailed name display name, short countryCode country code, follow no standard but should be unique geonameId internal unique id subdivision state, province, or other country subdivision, Follows ISO 3166-2
Definition at line 28 of file locationqueryresult.cpp.
◆ LocationQueryResult() [3/3]
KWeatherCore::LocationQueryResult::LocationQueryResult | ( | const LocationQueryResult & | other | ) |
Definition at line 45 of file locationqueryresult.cpp.
Member Function Documentation
◆ countryCode()
const QString & KWeatherCore::LocationQueryResult::countryCode | ( | ) | const |
country code, follow no standard but should be unique
Definition at line 73 of file locationqueryresult.cpp.
◆ countryName()
|
nodiscard |
Translated name of the country.
Definition at line 77 of file locationqueryresult.cpp.
◆ geonameId()
const QString & KWeatherCore::LocationQueryResult::geonameId | ( | ) | const |
internal unique id
Definition at line 81 of file locationqueryresult.cpp.
◆ latitude()
double KWeatherCore::LocationQueryResult::latitude | ( | ) | const |
Definition at line 57 of file locationqueryresult.cpp.
◆ longitude()
double KWeatherCore::LocationQueryResult::longitude | ( | ) | const |
Definition at line 61 of file locationqueryresult.cpp.
◆ name()
const QString & KWeatherCore::LocationQueryResult::name | ( | ) | const |
display name, short
Definition at line 69 of file locationqueryresult.cpp.
◆ operator=()
LocationQueryResult & KWeatherCore::LocationQueryResult::operator= | ( | const LocationQueryResult & | other | ) |
Definition at line 51 of file locationqueryresult.cpp.
◆ subdivision()
const std::optional< QString > & KWeatherCore::LocationQueryResult::subdivision | ( | ) | const |
Country subdivision such as state, province, etc.
Follows ISO 3166-2
Definition at line 85 of file locationqueryresult.cpp.
◆ toponymName()
const QString & KWeatherCore::LocationQueryResult::toponymName | ( | ) | const |
toponym name of location, detailed
Definition at line 65 of file locationqueryresult.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.