Qt Location Esri Plugin

Overview

This geo services plugin allows applications to access Esri location based services using the Qt Location API. The use of these services is governed by the Esri terms of use.

Data is provided by many different content providers.

The Esri geoservices plugin can be loaded by using the plugin key "esri".

To use the services provided by the Esri platform, a subscription is required. There are two kinds of subscriptions:

The Developer subscription offers a free-of-charge option for developing and testing your applications. With this, your applications can go to production under the following conditions:

  • The app can request up to one million maps per month, and one million geocodes per month.
  • The app does not directly generate revenue. That is, end users must be able to obtain it and to use it for free.

If the above conditions cannot be met, the ArcGIS Online subscription is the correct choice, as it gives applications full access to the ArcGIS platform.

Parameters

Mandatory parameters

ParameterDescription
esri.tokenSecurity token for using routing services only. Mapping and geocoding services do not require a token.

To use the routing services hosted on ArcGIS Online with the Esri plugin, a token is required. You can obtain a token for testing purposes, or you can sign up for an ArcGIS Online subscription.

Optional parameters

ParameterDescription
esri.useragentUser agent string sent when making network requests
esri.mapping.minimumZoomLevelThe minimum zoom level [double] at which the map is displayed
esri.mapping.maximumZoomLevelThe maximum level [double] at which the map is displayed
esri.mapping.cache.directoryAbsolute path to map tile cache directory used as network disk cache.

The default place for the cache is QtLocation/here directory in QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation). On systems that have no concept of a shared cache, the application-specific QStandardPaths::CacheLocation is used instead.

esri.mapping.cache.disk.cost_strategyThe cost strategy to use to cache map tiles on disk. Valid values are bytesize and unitary. Using bytesize, the related size parameter (esri.mapping.cache.disk.size) will be interpreted as bytes. Using unitary, they will be interpreted as number of tiles. The default value for this parameter is bytesize.
esri.mapping.cache.disk.sizeDisk cache size for map tiles. The default size of the cache is 50 MiB when bytesize is the cost strategy for this cache, or 1000 tiles, when unitary is the cost strategy.
esri.mapping.cache.memory.cost_strategyThe cost strategy to use to cache map tiles in memory. Valid values are bytesize and unitary. Using bytesize, the related size parameter (esri.mapping.cache.memory.size) will be interpreted as bytes. Using unitary, they will be interpreted as number of tiles. The default value for this parameter is bytesize.
esri.mapping.cache.memory.sizeMemory cache size for map tiles. The default size of the cache is 3 MiB when bytesize is the cost strategy for this cache, or 100 tiles, when unitary is the cost strategy.
esri.mapping.cache.texture.cost_strategyThe cost strategy to use to cache decompressed map tiles in memory. Valid values are bytesize and unitary. Using bytesize, the related size parameter (esri.mapping.cache.texture.size) will be interpreted as bytes. Using unitary, they will be interpreted as number of tiles. The default value for this parameter is bytesize.
esri.mapping.cache.texture.sizeTexture cache size for map tiles. The default size of the cache is 6 MiB when bytesize is the cost strategy for this cache, or 30 tiles, when unitary is the cost strategy. Note that the texture cache has a hard minimum size which depends on the size of the map viewport (it must contain enough data to display the tiles currently visible on the display). This value is the amount of cache to be used in addition to the bare minimum.

Directions language

The service supports generating directions in the following languages:

LanguageDescription
arGenerate directions in Arabic
csGenerate directions in Czech
deGenerate directions in German
elGenerate directions in Greek
en(default) Generate directions in English
esGenerate directions in Spanish
etGenerate directions in Estonian
frGenerate directions in French
heGenerate directions in Hebrew
itGenerate directions in Italian
jaGenerate directions in Japanese
koGenerate directions in Korean
ltGenerate directions in Lithuanian
lvGenerate directions in Latvian
nlGenerate directions in Dutch
plGenerate directions in Polish
pt-BRGenerate directions in Brazilian Portuguese
pt-PTGenerate directions in Portuguese (Portugal)
ruGenerate directions in Russian
svGenerate directions in Swedish
trGenerate directions in Turkish
zh-CNSimplified Chinese

If only unsupported language codes are specified via the locales property, the service returns the directions using the default language, English.

Directions length units

QLocale::MetricSystem (default) use meters, other values (QLocale::ImperialUSSystem, QLocale::ImperialUSSystem) use feet.

© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.