7#include <QtCore/QJsonDocument>
8#include <QtCore/QJsonArray>
9#include <QtCore/QJsonObject>
10#include <QtNetwork/QNetworkReply>
11#include <QtPositioning/QGeoCircle>
12#include <QtPositioning/QGeoRectangle>
13#include <QtPositioning/QGeoLocation>
14#include <QtPositioning/QGeoAddress>
15#include <QtLocation/QPlace>
16#include <QtLocation/QPlaceAttribute>
17#include <QtLocation/QPlaceIcon>
18#include <QtLocation/QPlaceResult>
19#include <QtLocation/QPlaceCategory>
20#include <QtLocation/QPlaceSearchRequest>
21#include <QtLocation/private/qplacesearchrequest_p.h>
37 this, &QPlaceSearchReplyOsm::replyFinished);
39 this, &QPlaceSearchReplyOsm::networkError);
58 if (coordinates.
count() != 4)
69void QPlaceSearchReplyOsm::replyFinished()
90 for (
int i = 0;
i < resultsArray.
count(); ++
i) {
102 if (!excludePlaceIds.isEmpty()) {
110 r.setSearchContext(parameters);
117 if (!placeIds.isEmpty()) {
125 r.setSearchContext(parameters);
165 icon.setParameters(iconParameters);
Q_INVOKABLE qreal distanceTo(const QGeoCoordinate &other) const
Returns the distance (in meters) from this coordinate to the coordinate specified by other.
QGeoCoordinate coordinate() const
Returns the coordinate of the location.
QByteArray readAll()
Reads all remaining data from the device, and returns it as a byte array.
QString errorString() const
Returns a human-readable description of the last device error that occurred.
\inmodule QtCore\reentrant
qsizetype count() const
Same as size().
QJsonValue at(qsizetype i) const
Returns a QJsonValue representing the value for index i.
\inmodule QtCore\reentrant
static QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error=nullptr)
Parses json as a UTF-8 encoded JSON document, and creates a QJsonDocument from it.
\inmodule QtCore\reentrant
QJsonValue value(const QString &key) const
Returns a QJsonValue representing the value for the key key.
QJsonObject toObject() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
QString toString() const
Converts the value to a QString and returns it.
void append(parameter_type t)
iterator insert(const Key &key, const T &value)
T value(const Key &key, const T &defaultValue=T()) const
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
void errorOccurred(QNetworkReply::NetworkError)
NetworkError error() const
Returns the error that was found during the processing of this request.
virtual void abort()=0
Aborts the operation immediately and close down any network connections still open.
NetworkError
Indicates all possible error conditions found during the processing of the request.
void finished()
This signal is emitted when the reply has finished processing.
QObject * parent() const
Returns a pointer to the parent object.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
QObject * sender() const
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; othe...
void destroyed(QObject *=nullptr)
This signal is emitted immediately before the object obj is destroyed, after any instances of QPointe...
void deleteLater()
\threadsafe
static const QString SingleUrl
\qmlvaluetype icon \inqmlmodule QtLocation
QPlaceReply::Error error() const
Returns the error code.
void errorOccurred(QPlaceReply::Error error, const QString &errorString=QString())
This signal is emitted when an error has been detected in the processing of this reply.
void finished()
This signal is emitted when this reply has finished processing.
Error
Describes an error which occurred during an operation.
QString errorString() const
Returns the error string of the reply.
void setError(QPlaceReply::Error error, const QString &errorString)
Sets the error and errorString of the reply.
void setFinished(bool finished)
Sets the status of whether the reply is finished or not.
void setDistance(qreal distance)
Set the distance of the search result's place from a search center.
QPlace place() const
Returns the place of the search result.
QPlaceSearchReplyOsm(const QPlaceSearchRequest &request, QNetworkReply *reply, QPlaceManagerEngineOsm *parent)
void setRequest(const QPlaceSearchRequest &request)
Sets the search request used to generate this reply.
QPlaceSearchRequest request() const
Returns the search request that was used to generate this reply.
void setNextPageRequest(const QPlaceSearchRequest &next)
Sets the next page of search results request to next.
QList< QPlaceSearchResult > results() const
Returns a list of search results;.
void setPreviousPageRequest(const QPlaceSearchRequest &previous)
Sets the previous page of search results request to previous.
void setResults(const QList< QPlaceSearchResult > &results)
Sets the list of search results.
static const QPlaceSearchRequestPrivate * get(const QPlaceSearchRequest &request)
QGeoShape searchArea() const
Returns the search area which will be used to limit search results.
QVariant searchContext() const
Returns backend specific additional search context associated with this place search request.
void setIcon(const QPlaceIcon &icon)
Sets the icon of the place.
void setCategory(const QPlaceCategory &category)
Sets a single category that this place belongs to.
void setPlaceId(const QString &identifier)
Sets the identifier of the place.
void setAttribution(const QString &attribution)
Sets the attribution string of the place.
void setLocation(const QGeoLocation &location)
Sets the location of the place.
QGeoLocation location() const
Returns the location of the place.
void setExtendedAttribute(const QString &attributeType, const QPlaceAttribute &attribute)
Assigns an attribute of the given attributeType to a place.
void setName(const QString &name)
Sets the name of the place.
QString placeId() const
Returns the identifier of the place.
\macro QT_RESTRICTED_CAST_FROM_ASCII
double toDouble(bool *ok=nullptr) const
Returns the string converted to a double value.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QMap< QString, QVariant > toMap() const
Returns the variant as a QVariantMap if the variant has type() \l QMetaType::QVariantMap.
QStringList toStringList() const
Returns the variant as a QStringList if the variant has userType() \l QMetaType::QStringList,...
const QLoggingCategory & category()
[1]
Combined button and popup list for selecting options.
emscripten::val document()
DBusConnection const char DBusError * error
EGLOutputLayerEXT EGLint attribute
GLdouble GLdouble GLdouble GLdouble top
GLuint GLuint64EXT address
static QGeoRectangle parseBoundingBox(const QJsonArray &coordinates)
#define QStringLiteral(str)
static int toInt(const QChar &qc, int R)
static double toDouble(Value v)
QNetworkRequest request(url)
char * toString(const MyType &t)
[31]
\inmodule QtCore \reentrant
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent