From 588b49f0d0e5a972db085dbf34823b4fc3f700de Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 10 Mar 2020 18:27:42 +0000 Subject: [PATCH] update HERE --- .../nokia/qgeocodingmanagerengine_nokia.cpp | 17 ++---- .../nokia/qgeocodingmanagerengine_nokia.h | 3 +- .../geoservices/nokia/qgeoerror_messages.cpp | 2 +- .../nokia/qgeoroutingmanagerengine_nokia.cpp | 25 ++++---- .../nokia/qgeoroutingmanagerengine_nokia.h | 3 +- .../nokia/qgeoserviceproviderplugin_nokia.cpp | 15 ++--- .../nokia/qgeotilefetcher_nokia.cpp | 57 +++++++------------ .../geoservices/nokia/qgeotilefetcher_nokia.h | 6 +- .../nokia/qplacemanagerengine_nokiav2.cpp | 29 +++++----- .../nokia/qplacemanagerengine_nokiav2.h | 3 +- .../geoservices/nokia/uri_constants.cpp | 12 ++-- 11 files changed, 65 insertions(+), 107 deletions(-) diff --git a/src/plugins/geoservices/nokia/qgeocodingmanagerengine_nokia.cpp b/src/plugins/geoservices/nokia/qgeocodingmanagerengine_nokia.cpp index b3c74a63..826310f6 100644 --- a/src/plugins/geoservices/nokia/qgeocodingmanagerengine_nokia.cpp +++ b/src/plugins/geoservices/nokia/qgeocodingmanagerengine_nokia.cpp @@ -66,12 +66,8 @@ QGeoCodingManagerEngineNokia::QGeoCodingManagerEngineNokia( Q_ASSERT(networkManager); m_networkManager->setParent(this); - if (parameters.contains(QStringLiteral("here.token"))) - m_token = parameters.value(QStringLiteral("here.token")).toString(); - - if (parameters.contains(QStringLiteral("here.app_id"))) - m_applicationId = parameters.value(QStringLiteral("here.app_id")).toString(); - + if (parameters.contains(QStringLiteral("here.apiKey"))) + m_apiKey = parameters.value(QStringLiteral("here.apiKey")).toString(); if (error) *error = QGeoServiceProvider::NoError; @@ -85,12 +81,9 @@ QString QGeoCodingManagerEngineNokia::getAuthenticationString() const { QString authenticationString; - if (!m_token.isEmpty() && !m_applicationId.isEmpty()) { - authenticationString += "?app_code="; - authenticationString += m_token; - - authenticationString += "&app_id="; - authenticationString += m_applicationId; + if (!m_apiKey.isEmpty()) { + authenticationString += "?apiKey="; + authenticationString += m_apiKey; } return authenticationString; diff --git a/src/plugins/geoservices/nokia/qgeocodingmanagerengine_nokia.h b/src/plugins/geoservices/nokia/qgeocodingmanagerengine_nokia.h index 9e1564aa..a7cfd06a 100644 --- a/src/plugins/geoservices/nokia/qgeocodingmanagerengine_nokia.h +++ b/src/plugins/geoservices/nokia/qgeocodingmanagerengine_nokia.h @@ -82,8 +82,7 @@ private: QGeoNetworkAccessManager *m_networkManager; QGeoUriProvider *m_uriProvider; QGeoUriProvider *m_reverseGeocodingUriProvider; - QString m_token; - QString m_applicationId; + QString m_apiKey; }; QT_END_NAMESPACE diff --git a/src/plugins/geoservices/nokia/qgeoerror_messages.cpp b/src/plugins/geoservices/nokia/qgeoerror_messages.cpp index 576ecd43..f49e0905 100644 --- a/src/plugins/geoservices/nokia/qgeoerror_messages.cpp +++ b/src/plugins/geoservices/nokia/qgeoerror_messages.cpp @@ -39,7 +39,7 @@ QT_BEGIN_NAMESPACE const char NOKIA_PLUGIN_CONTEXT_NAME[] = "QtLocationQML"; -const char MISSED_CREDENTIALS[] = QT_TRANSLATE_NOOP("QtLocationQML", "Qt Location requires app_id and token parameters.\nPlease register at https://developer.here.com/ to get your personal application credentials."); +const char MISSED_CREDENTIALS[] = QT_TRANSLATE_NOOP("QtLocationQML", "Qt Location requires apiKey parameter.\nPlease register at https://developer.here.com/ to get your personal application credentials."); const char SAVING_PLACE_NOT_SUPPORTED[] = QT_TRANSLATE_NOOP("QtLocationQML", "Saving places is not supported."); const char REMOVING_PLACE_NOT_SUPPORTED[] = QT_TRANSLATE_NOOP("QtLocationQML", "Removing places is not supported."); const char SAVING_CATEGORY_NOT_SUPPORTED[] = QT_TRANSLATE_NOOP("QtLocationQML", "Saving categories is not supported."); diff --git a/src/plugins/geoservices/nokia/qgeoroutingmanagerengine_nokia.cpp b/src/plugins/geoservices/nokia/qgeoroutingmanagerengine_nokia.cpp index a33d1ba8..83da4a2b 100644 --- a/src/plugins/geoservices/nokia/qgeoroutingmanagerengine_nokia.cpp +++ b/src/plugins/geoservices/nokia/qgeoroutingmanagerengine_nokia.cpp @@ -1,7 +1,7 @@ /**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ +** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtLocation module of the Qt Toolkit. ** @@ -11,8 +11,8 @@ ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser @@ -28,7 +28,7 @@ ** Software Foundation and appearing in the file LICENSE.GPL included in ** the packaging of this file. Please review the following information to ** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. +** met: https://www.gnu.org/licenses/gpl-2.0.html. ** ** $QT_END_LICENSE$ ** @@ -60,8 +60,7 @@ QGeoRoutingManagerEngineNokia::QGeoRoutingManagerEngineNokia( Q_ASSERT(networkManager); m_networkManager->setParent(this); - m_appId = parameters.value(QStringLiteral("here.app_id")).toString(); - m_token = parameters.value(QStringLiteral("here.token")).toString(); + m_apiKey = parameters.value(QStringLiteral("here.apiKey")).toString(); QGeoRouteRequest::FeatureTypes featureTypes; featureTypes |= QGeoRouteRequest::TollFeature; @@ -219,18 +218,16 @@ QStringList QGeoRoutingManagerEngineNokia::calculateRouteRequestString(const QGe return QStringList(); QStringList requests; - QString baseRequest = QStringLiteral("http://"); + QString baseRequest = QStringLiteral("https://"); baseRequest += m_uriProvider->getCurrentHost(); baseRequest += QStringLiteral("/routing/7.2/calculateroute.xml"); baseRequest += QStringLiteral("?alternatives="); baseRequest += QString::number(request.numberAlternativeRoutes()); - - if (!m_appId.isEmpty() && !m_token.isEmpty()) { - baseRequest += QStringLiteral("&app_id="); - baseRequest += m_appId; - baseRequest += QStringLiteral("&token="); - baseRequest += m_token; + + if (!m_apiKey.isEmpty()) { + baseRequest += QStringLiteral("&apiKey="); + baseRequest += m_apiKey; } int numWaypoints = request.waypoints().size(); @@ -270,7 +267,7 @@ QStringList QGeoRoutingManagerEngineNokia::updateRouteRequestString(const QGeoRo return QStringList(); QStringList requests; - QString baseRequest = "http://"; + QString baseRequest = "https://"; baseRequest += m_uriProvider->getCurrentHost(); baseRequest += "/routing/7.2/getroute.xml"; diff --git a/src/plugins/geoservices/nokia/qgeoroutingmanagerengine_nokia.h b/src/plugins/geoservices/nokia/qgeoroutingmanagerengine_nokia.h index 9335bcac..67fb5825 100644 --- a/src/plugins/geoservices/nokia/qgeoroutingmanagerengine_nokia.h +++ b/src/plugins/geoservices/nokia/qgeoroutingmanagerengine_nokia.h @@ -77,8 +77,7 @@ private: QGeoNetworkAccessManager *m_networkManager; QGeoUriProvider *m_uriProvider; - QString m_appId; - QString m_token; + QString m_apiKey; }; QT_END_NAMESPACE diff --git a/src/plugins/geoservices/nokia/qgeoserviceproviderplugin_nokia.cpp b/src/plugins/geoservices/nokia/qgeoserviceproviderplugin_nokia.cpp index f68a0d99..a0db7f08 100644 --- a/src/plugins/geoservices/nokia/qgeoserviceproviderplugin_nokia.cpp +++ b/src/plugins/geoservices/nokia/qgeoserviceproviderplugin_nokia.cpp @@ -80,20 +80,15 @@ namespace void checkUsageTerms(const QVariantMap ¶meters, QGeoServiceProvider::Error *error, QString *errorString) { - QString appId, token; + QString apiKey = parameters.value(QStringLiteral("here.apiKey")).toString(); - appId = parameters.value(QStringLiteral("here.app_id")).toString(); - token = parameters.value(QStringLiteral("here.token")).toString(); - - if (isValidParameter(appId) && isValidParameter(token)) + if (isValidParameter(apiKey)) return; - else if (!isValidParameter(appId)) - qWarning() << "Invalid here.app_id"; else - qWarning() << "Invalid here.token"; + qWarning() << "Invalid here.apiKey"; - if (parameters.contains(QStringLiteral("app_id")) || parameters.contains(QStringLiteral("token"))) - qWarning() << QStringLiteral("Please prefix 'app_id' and 'token' with prefix 'here' (e.g.: 'here.app_id')"); + if (parameters.contains(QStringLiteral("apiKey"))) + qWarning() << QStringLiteral("Please prefix 'apiKey' with prefix 'here' (e.g.: 'here.apiKey')"); *error = QGeoServiceProvider::MissingRequiredParameterError; *errorString = QCoreApplication::translate(NOKIA_PLUGIN_CONTEXT_NAME, MISSED_CREDENTIALS); diff --git a/src/plugins/geoservices/nokia/qgeotilefetcher_nokia.cpp b/src/plugins/geoservices/nokia/qgeotilefetcher_nokia.cpp index d07a93ba..6b67d143 100644 --- a/src/plugins/geoservices/nokia/qgeotilefetcher_nokia.cpp +++ b/src/plugins/geoservices/nokia/qgeotilefetcher_nokia.cpp @@ -1,7 +1,7 @@ /**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ +** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtLocation module of the Qt Toolkit. ** @@ -11,8 +11,8 @@ ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser @@ -28,7 +28,7 @@ ** Software Foundation and appearing in the file LICENSE.GPL included in ** the packaging of this file. Please review the following information to ** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. +** met: https://www.gnu.org/licenses/gpl-2.0.html. ** ** $QT_END_LICENSE$ ** @@ -84,8 +84,7 @@ QGeoTileFetcherNokia::QGeoTileFetcherNokia(const QVariantMap ¶meters, m_tileSize = qMax(tileSize.width(), tileSize.height()); m_networkManager->setParent(this); - m_applicationId = parameters.value(QStringLiteral("here.app_id")).toString(); - m_token = parameters.value(QStringLiteral("here.token")).toString(); + m_apiKey = parameters.value(QStringLiteral("here.apiKey")).toString(); } QGeoTileFetcherNokia::~QGeoTileFetcherNokia() @@ -127,7 +126,7 @@ QString QGeoTileFetcherNokia::getRequestString(const QGeoTileSpec &spec, int ppi if (!m_engineNokia) return QString(); - static const QString http("http://"); + static const QString http("https://"); static const QString path("/maptile/2.1/maptile/newest/"); static const QChar slash('/'); @@ -152,12 +151,9 @@ QString QGeoTileFetcherNokia::getRequestString(const QGeoTileSpec &spec, int ppi static const QString slashpng("/png8"); requestString += slashpng; - if (!m_token.isEmpty() && !m_applicationId.isEmpty()) { // TODO: remove the if - requestString += "?token="; - requestString += m_token; - - requestString += "&app_id="; - requestString += m_applicationId; + if (!m_apiKey.isEmpty()) { // TODO: remove the if + requestString += "?apiKey="; + requestString += m_apiKey; } requestString += "&ppi=" + QString::number(ppi); @@ -235,14 +231,9 @@ QString QGeoTileFetcherNokia::getLanguageString() const // No "lg" param means that we want English. } -QString QGeoTileFetcherNokia::token() const -{ - return m_token; -} - -QString QGeoTileFetcherNokia::applicationId() const +QString QGeoTileFetcherNokia::apiKey() const { - return m_applicationId; + return m_apiKey; } void QGeoTileFetcherNokia::copyrightsFetched() @@ -271,19 +262,14 @@ void QGeoTileFetcherNokia::versionFetched() void QGeoTileFetcherNokia::fetchCopyrightsData() { - QString copyrightUrl = QStringLiteral("http://"); + QString copyrightUrl = QStringLiteral("https://"); copyrightUrl += m_baseUriProvider->getCurrentHost(); copyrightUrl += QStringLiteral("/maptile/2.1/copyright/newest?output=json"); - if (!token().isEmpty()) { - copyrightUrl += QStringLiteral("&token="); - copyrightUrl += token(); - } - - if (!applicationId().isEmpty()) { - copyrightUrl += QStringLiteral("&app_id="); - copyrightUrl += applicationId(); + if (!apiKey().isEmpty()) { + copyrightUrl += QStringLiteral("&apiKey="); + copyrightUrl += apiKey(); } QNetworkRequest netRequest((QUrl(copyrightUrl))); @@ -303,19 +289,14 @@ void QGeoTileFetcherNokia::fetchCopyrightsData() void QGeoTileFetcherNokia::fetchVersionData() { - QString versionUrl = QStringLiteral("http://"); + QString versionUrl = QStringLiteral("https://"); versionUrl += m_baseUriProvider->getCurrentHost(); versionUrl += QStringLiteral("/maptile/2.1/version"); - if (!token().isEmpty()) { - versionUrl += QStringLiteral("?token="); - versionUrl += token(); - } - - if (!applicationId().isEmpty()) { - versionUrl += QStringLiteral("&app_id="); - versionUrl += applicationId(); + if (!apiKey().isEmpty()) { + versionUrl += QStringLiteral("?apiKey="); + versionUrl += apiKey(); } QNetworkRequest netRequest((QUrl(versionUrl))); diff --git a/src/plugins/geoservices/nokia/qgeotilefetcher_nokia.h b/src/plugins/geoservices/nokia/qgeotilefetcher_nokia.h index 06d1bba9..7dd5f5c5 100644 --- a/src/plugins/geoservices/nokia/qgeotilefetcher_nokia.h +++ b/src/plugins/geoservices/nokia/qgeotilefetcher_nokia.h @@ -62,8 +62,7 @@ public: QGeoTiledMapReply *getTileImage(const QGeoTileSpec &spec); - QString token() const; - QString applicationId() const; + QString apiKey() const; public Q_SLOTS: void copyrightsFetched(); @@ -82,11 +81,10 @@ private: QGeoNetworkAccessManager *m_networkManager; int m_tileSize; int m_ppi; - QString m_token; + QString m_apiKey; QNetworkReply *m_copyrightsReply; QNetworkReply *m_versionReply; - QString m_applicationId; QGeoUriProvider *m_baseUriProvider; QGeoUriProvider *m_aerialUriProvider; }; diff --git a/src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.cpp b/src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.cpp index 67b7e70f..e608c7d9 100644 --- a/src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.cpp +++ b/src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.cpp @@ -1,7 +1,7 @@ /**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ +** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtLocation module of the Qt Toolkit. ** @@ -11,8 +11,8 @@ ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser @@ -28,7 +28,7 @@ ** Software Foundation and appearing in the file LICENSE.GPL included in ** the packaging of this file. Please review the following information to ** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. +** met: https://www.gnu.org/licenses/gpl-2.0.html. ** ** $QT_END_LICENSE$ ** @@ -207,8 +207,7 @@ QPlaceManagerEngineNokiaV2::QPlaceManagerEngineNokiaV2( m_locales.append(QLocale()); - m_appId = parameters.value(QStringLiteral("here.app_id")).toString(); - m_appCode = parameters.value(QStringLiteral("here.token")).toString(); + m_apiKey = parameters.value(QStringLiteral("here.apiKey")).toString(); m_theme = parameters.value(IconThemeKey, QString()).toString(); @@ -236,7 +235,7 @@ QPlaceManagerEngineNokiaV2::~QPlaceManagerEngineNokiaV2() {} QPlaceDetailsReply *QPlaceManagerEngineNokiaV2::getPlaceDetails(const QString &placeId) { - QUrl requestUrl(QString::fromLatin1("http://") + m_uriProvider->getCurrentHost() + + QUrl requestUrl(QString::fromLatin1("https://") + m_uriProvider->getCurrentHost() + QStringLiteral("/places/v1/places/") + placeId); QUrlQuery queryItems; @@ -267,7 +266,7 @@ QPlaceContentReply *QPlaceManagerEngineNokiaV2::getPlaceContent(const QPlaceCont networkReply = sendRequest(u); } else { - QUrl requestUrl(QString::fromLatin1("http://") + m_uriProvider->getCurrentHost() + + QUrl requestUrl(QString::fromLatin1("https://") + m_uriProvider->getCurrentHost() + QStringLiteral("/places/v1/places/") + request.placeId() + QStringLiteral("/media/")); @@ -408,7 +407,7 @@ QPlaceSearchReply *QPlaceManagerEngineNokiaV2::search(const QPlaceSearchRequest networkReply = sendRequest(u); } else if (!query.searchTerm().isEmpty()) { // search term query - QUrl requestUrl(QString::fromLatin1("http://") + m_uriProvider->getCurrentHost() + + QUrl requestUrl(QString::fromLatin1("https://") + m_uriProvider->getCurrentHost() + QStringLiteral("/places/v1/discover/search")); queryItems.addQueryItem(QStringLiteral("q"), query.searchTerm()); @@ -430,7 +429,7 @@ QPlaceSearchReply *QPlaceManagerEngineNokiaV2::search(const QPlaceSearchRequest return reply; } else if (!query.recommendationId().isEmpty()) { - QUrl requestUrl(QString::fromLatin1("http://") + m_uriProvider->getCurrentHost() + + QUrl requestUrl(QString::fromLatin1("https://") + m_uriProvider->getCurrentHost() + QStringLiteral("/places/v1/places/") + query.recommendationId() + QStringLiteral("/related/recommended")); @@ -441,7 +440,7 @@ QPlaceSearchReply *QPlaceManagerEngineNokiaV2::search(const QPlaceSearchRequest networkReply = sendRequest(requestUrl); } else { // category search - QUrl requestUrl(QStringLiteral("http://") + m_uriProvider->getCurrentHost() + + QUrl requestUrl(QStringLiteral("https://") + m_uriProvider->getCurrentHost() + QStringLiteral("/places/v1/discover/explore")); QStringList ids; @@ -496,7 +495,7 @@ QPlaceSearchSuggestionReply *QPlaceManagerEngineNokiaV2::searchSuggestions(const return reply; } - QUrl requestUrl(QString::fromLatin1("http://") + m_uriProvider->getCurrentHost() + + QUrl requestUrl(QString::fromLatin1("https://") + m_uriProvider->getCurrentHost() + QStringLiteral("/places/v1/suggest")); QUrlQuery queryItems; @@ -631,7 +630,7 @@ QPlaceReply *QPlaceManagerEngineNokiaV2::initializeCategories() for (auto it = m_tempTree.keyBegin(), end = m_tempTree.keyEnd(); it != end; ++it) { if (*it == QString()) continue; - QUrl requestUrl(QString::fromLatin1("http://") + m_uriProvider->getCurrentHost() + + QUrl requestUrl(QString::fromLatin1("https://") + m_uriProvider->getCurrentHost() + QStringLiteral("/places/v1/categories/places/") + *it); QNetworkReply *networkReply = sendRequest(requestUrl); connect(networkReply, SIGNAL(finished()), this, SLOT(categoryReplyFinished())); @@ -828,9 +827,7 @@ void QPlaceManagerEngineNokiaV2::categoryReplyError() QNetworkReply *QPlaceManagerEngineNokiaV2::sendRequest(const QUrl &url) { QUrlQuery queryItems(url); - queryItems.addQueryItem(QStringLiteral("app_id"), m_appId); - queryItems.addQueryItem(QStringLiteral("app_code"), m_appCode); - + queryItems.addQueryItem(QStringLiteral("apiKey"), m_apiKey); QUrl requestUrl = url; requestUrl.setQuery(queryItems); diff --git a/src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.h b/src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.h index fe2e537e..a5c98911 100644 --- a/src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.h +++ b/src/plugins/geoservices/nokia/qplacemanagerengine_nokiav2.h @@ -122,8 +122,7 @@ private: QPointer m_categoryReply; QHash m_categoryRequests; - QString m_appId; - QString m_appCode; + QString m_apiKey; QString m_localDataPath; QString m_theme; diff --git a/src/plugins/geoservices/nokia/uri_constants.cpp b/src/plugins/geoservices/nokia/uri_constants.cpp index 8db47beb..030006f5 100644 --- a/src/plugins/geoservices/nokia/uri_constants.cpp +++ b/src/plugins/geoservices/nokia/uri_constants.cpp @@ -37,11 +37,11 @@ QT_BEGIN_NAMESPACE -const QString ROUTING_HOST = QLatin1String("route.api.here.com"); -const QString GEOCODING_HOST = QLatin1String("geocoder.api.here.com"); -const QString REVERSE_GEOCODING_HOST = QLatin1String("reverse.geocoder.api.here.com"); -const QString PLACES_HOST = QLatin1String("places.api.here.com"); -const QString MAP_TILES_HOST = QLatin1String("1-4.base.maps.api.here.com"); -const QString MAP_TILES_HOST_AERIAL = QLatin1String("1-4.aerial.maps.api.here.com"); +const QString ROUTING_HOST = QLatin1String("route.ls.hereapi.com"); +const QString GEOCODING_HOST = QLatin1String("geocoder.ls.hereapi.com"); +const QString REVERSE_GEOCODING_HOST = QLatin1String("reverse.geocoder.ls.hereapi.com"); +const QString PLACES_HOST = QLatin1String("places.ls.hereapi.com"); +const QString MAP_TILES_HOST = QLatin1String("1-4.base.maps.ls.hereapi.com"); +const QString MAP_TILES_HOST_AERIAL = QLatin1String("1-4.aerial.maps.ls.hereapi.com"); QT_END_NAMESPACE -- 2.17.1