KPublicTransport
locationutil.cpp
18bool LocationUtil::sortLessThan(const LocationRequest &request, const Location &lhs, const Location &rhs)
21 return Location::distance(request.latitude(), request.longitude(), lhs.latitude(), lhs.longitude())
51 return QString::number((int)(loc.latitude() * 1000000)) + QLatin1Char('x') + QString::number((int)(loc.longitude() * 1000000));
bool hasCoordinate() const
Returns true if a valid geo coordinate has been set.
Definition locationrequest.cpp:88
static bool isSameName(const QString &lhs, const QString &rhs)
Checks if two location names refer to the same location.
Definition location.cpp:370
static double distance(double lat1, double lon1, double lat2, double lon2)
Compute the distance between two geo coordinates, in meters.
Definition location.cpp:474
QString country
Country of the location as ISO 3166-1 alpha 2 code, if known.
Definition location.h:67
Query operations and data types for accessing realtime public transport information from online servi...
Definition attribution.cpp:16
int compare(QLatin1StringView s1, const QString &s2, Qt::CaseSensitivity cs)
QString fromUtf8(QByteArrayView str)
QString number(double n, char format, int precision)
void push_back(QChar ch)
void reserve(qsizetype size)
qsizetype size() const const
QByteArray toUtf8() const const
CaseInsensitive
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:57:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:57:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.