KPublicTransport
linemetadata.cpp
67 return logoName.isEmpty() ? QUrl() : QUrl(QLatin1String("https://commons.wikimedia.org/wiki/Special:Redirect/file/") + logoName);
96 return logoName.isEmpty() ? QUrl() : QUrl(QLatin1String("https://commons.wikimedia.org/wiki/Special:Redirect/file/") + logoName);
99LineMetaData LineMetaData::find(double latitude, double longitude, const QString &name, Line::Mode mode)
104 constexpr const auto depthCount = sizeof(line_data_depthOffsets) / sizeof(LineMetaDataQuadTreeDepthIndex);
111 const auto isLineMatch = [](const LineMetaDataContent *d, const QString &name, Line::Mode mode) {
114 (LineUtil::isCompatibleBaseMode(LineMetaData(d).mode(), mode) && LineUtil::isHighlyIdentifyingName(name)));
117 // walk through the quad tree bottom up, looking for a tile containing the line we are looking for
Static information about a public transport line.
Definition linemetadata.h:26
static LineMetaData find(double latitude, double longitude, const QString &name, Line::Mode mode)
Attempts to find information about a line with the given name and a stop at the given coordinates.
Definition linemetadata.cpp:99
constexpr uint64_t z() const
ZTile parent() const
Query operations and data types for accessing realtime public transport information from online servi...
Definition attribution.cpp:16
QString fromUtf8(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.