KPublicTransport
locationrequest.cpp
96 return QString(d->location.locality() + QLatin1Char(' ') + d->location.streetAddress()).trimmed();
bool isValid() const
Returns true if this is a valid request, that is it has enough parameters set to perform a query.
Definition locationrequest.cpp:44
void setLatitude(double lat)
Sets the latitude of the location to search.
Definition locationrequest.cpp:65
void setBackendIds(const QStringList &backendIds)
Set identifiers of backends that should be queried.
Definition locationrequest.cpp:130
QString cacheKey() const
Unique string representation used for caching results.
Definition locationrequest.cpp:107
void setLongitude(double lon)
Sets the longitude of the location to search.
Definition locationrequest.cpp:76
void setCoordinate(double lat, double lon)
Search by geo coordinate.
Definition locationrequest.cpp:82
KPublicTransport::Location::Types types
The type of locations you are interested in.
Definition locationrequest.h:52
KPublicTransport::Location location
Location object containing the search parameters.
Definition locationrequest.h:31
bool hasCoordinate() const
Returns true if a valid geo coordinate has been set.
Definition locationrequest.cpp:88
QStringList backendIds() const
Identifiers of the backends that should be queried.
Definition locationrequest.cpp:125
int maximumDistance
When searching by coordinate, the expected maximum distance of the results in meters.
Definition locationrequest.h:42
@ RentedVehicleStation
a pick-up/drop-off point for dock-based rental bike/scooter systems
Definition location.h:38
static QJsonObject toJson(const Location &loc)
Serializes one Location object to JSON.
Definition location.cpp:494
Query operations and data types for accessing realtime public transport information from online servi...
Definition attribution.cpp:16
QByteArray number(double n, char format, int precision)
QByteArray toHex(char separator) const const
bool addData(QIODevice *device)
QByteArray result() const const
QMetaEnum fromType()
QString fromUtf8(QByteArrayView str)
QString trimmed() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.