KPublicTransport
coveragearea.cpp
65KPUBLICTRANSPORT_MAKE_PROPERTY(CoverageArea, QStringList, vdvOrganizationIds, setVdvOrganizationIds)
106 return std::binary_search(d->regions.begin(), d->regions.end(), loc.country(), [](const auto &lhs, const auto &rhs) {
Describes the area a specific KPublicTransport::Backend can provide information for.
Definition coveragearea.h:22
bool isGlobal() const
Returns true if this area covers the entire world.
Definition coveragearea.cpp:72
bool hasNationWideCoverage(const QString &country) const
Checks whether this includes the entire country country.
Definition coveragearea.cpp:115
bool coversLocation(const Location &loc) const
Checks whether loc is covered by this area.
Definition coveragearea.cpp:86
static CoverageArea fromJson(const QJsonObject &obj)
Read a single coverage area information from a JSON object in Transport API Repository format.
Definition coveragearea.cpp:120
Query operations and data types for accessing realtime public transport information from online servi...
Definition attribution.cpp:16
ReadOnly
QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error)
QJsonValue value(QLatin1StringView key) const const
QString toString() const const
iterator begin()
iterator end()
qsizetype size() const const
WindingFill
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:50:52 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:50:52 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.