4#ifndef PLACESEARCHREPLYESRI_H
5#define PLACESEARCHREPLYESRI_H
7#include <QtLocation/QPlaceSearchReply>
8#include <QNetworkReply>
31 void networkError(QNetworkReply::NetworkError error);
34 QPlaceResult parsePlaceResult(
const QJsonObject &item)
const;
36 const QHash<QString, QString> &m_candidateFields;
37 const QHash<QString, QString> &m_countries;
QPlaceReply * initializeCategories() override
Initializes the categories of the manager engine.
QStringList childCategoryIds(const QString &categoryId) const override
Returns the child category identifiers of the category corresponding to categoryId.
QPlaceSearchReply * search(const QPlaceSearchRequest &request) override
Searches for places according to the parameters specified in request.
QList< QPlaceCategory > childCategories(const QString &parentId) const override
Returns a list of categories that are children of the category corresponding to parentId.
QList< QLocale > locales() const override
Returns a list of preferred locales.
~PlaceManagerEngineEsri()
void setLocales(const QList< QLocale > &locales) override
Set the list of preferred locales.
QPlaceCategory category(const QString &categoryId) const override
Returns the category corresponding to the given categoryId.
QString parentCategoryId(const QString &categoryId) const override
Returns the parent category identifier of the category corresponding to categoryId.
Combined button and popup list for selecting options.
static const QString kSingleLineKey(QStringLiteral("singleLine"))
static const QString kCountriesKey(QStringLiteral("detailedCountries"))
static const QString kLocalizedNamesKey(QStringLiteral("localizedNames"))
static const QString kOutFieldsKey(QStringLiteral("outFields"))
static const QString kCandidateFieldsKey(QStringLiteral("candidateFields"))
static const QString kMaxLocationsKey(QStringLiteral("maxLocations"))
static QT_BEGIN_NAMESPACE const QString kCategoriesKey(QStringLiteral("categories"))
static const QString kLocationKey(QStringLiteral("location"))
static const QUrl kUrlFindAddressCandidates("https://geocode.arcgis.com/arcgis/rest/services/World/" "GeocodeServer/findAddressCandidates")
static const QString kNameKey(QStringLiteral("name"))
static const QUrl kUrlGeocodeServer("https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer?f=pjson")