summaryrefslogtreecommitdiffstats
path: root/src/location/doc/src/plugins/osm.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/doc/src/plugins/osm.qdoc')
-rw-r--r--src/location/doc/src/plugins/osm.qdoc153
1 files changed, 80 insertions, 73 deletions
diff --git a/src/location/doc/src/plugins/osm.qdoc b/src/location/doc/src/plugins/osm.qdoc
index dc0bb256..9374f207 100644
--- a/src/location/doc/src/plugins/osm.qdoc
+++ b/src/location/doc/src/plugins/osm.qdoc
@@ -61,77 +61,11 @@ a prefix.
\li Parameter
\li Description
\row
- \li osm.useragent
- \li User agent string set when making network requests. This parameter should be set to a
- value that uniquely identifies the application. Note that providers might block applications not setting this
- parameter, leaving it to the stock plugin user agent (e.g., \l {http://wiki.openstreetmap.org/wiki/Nominatim_usage_policy}{Nominatim}
- for geocoding)
-\row
- \li osm.mapping.custom.host
- \li Url string of a custom tile server. This parameter should be set to a valid server url offering the correct osm API.
- To use this server, the \l{Map::activeMapType} parameter of the \l Map should be set to the supported map type
- whose type is \l{MapType}.CustomMap.
- This map type is only be available if this plugin parameter is set, in which case it is
- always \l{Map::supportedMapTypes}[supportedMapTypes.length - 1].
- \note Setting the mapping.custom.host parameter to a new server renders the map tile cache useless for the old custommap style.
-\row
- \li osm.mapping.custom.mapcopyright
- \li Custom map copryright string is used when setting the \l{Map::activeMapType} to \l{MapType}.CustomMap via urlprefix parameter.
- This copyright will only be used when using the CustomMap from above. If empty no map copyright will be displayed for the custom map.
-\row
- \li osm.mapping.custom.datacopyright
- \li Custom data copryright string is used when setting the \l{Map::activeMapType} to \l{MapType}.CustomMap via urlprefix parameter.
- This copyright will only be used when using the CustomMap from above. If empty no data copyright will be displayed for the custom map.
-\row
- \li osm.mapping.providersrepository.address
- \li The OpenStreetMap plugin retrieves the provider's information from a remote repository. This is done to prevent using hardcoded
- servers by default, which may become unavailable. By default this information is fetched from \l {http://maps-redirect.qt.io} {maps-redirect.qt.io}.
- Setting this parameter changes the provider repository address to a user-specified one, which must contain the files
- \tt{street}, \tt{satellite}, \tt{cycle}, \tt{transit}, \tt{night-transit}, \tt{terrain} and \tt{hiking}, each of which must contain valid provider information.
-\row
- \li osm.mapping.providersrepository.disabled
- \li By default, the OpenStreetMap plugin retrieves the provider's information from a remote repository to avoid a loss of service due to unavailability of hardcoded services.
- The plugin, however, still contains fallback hardcoded provider data, in case the provider repository becomes unreachable.
- Setting this parameter to \b true makes the plugin use the hardcoded urls only and therefore prevents the plugin from fetching provider data from the remote repository.
-\row
- \li osm.mapping.highdpi_tiles
- \li Whether or not to request high dpi tiles. Valid values are \b true and \b false. The default value is \b false.
- Please note that not all map types are available in high dpi. Setting this parameter to true might even have no effect if
- no map type is available in high dpi at the moment. Provider information files for high dpi tiles are named
- \tt{street-hires}, \tt{satellite-hires}, \tt{cycle-hires}, \tt{transit-hires}, \tt{night-transit-hires}, \tt{terrain-hires} and \tt{hiking-hires}.
- These are fetched from the same location used for the low dpi counterparts.
-\row
- \li osm.mapping.prefetching_style
- \li This parameter allows to provide a hint how tile prefetching is to be performed by the engine. The default value,
- \tt{TwoNeighbourLayers}, makes the engine prefetch tiles for the layer above and the one below the current tile
- layer, providing ready tiles when zooming in or out from the current zoom level.
- \tt{OneNeighbourLayer} only prefetches the one layer closest to the current zoom level.
- Finally, \tt{NoPrefetching} allows to disable the prefetching, so only tiles that are visible will be fetched.
- Note that, depending on the active map type, this hint might be ignored.
-\row
- \li osm.routing.host
- \li Url string set when making network requests to the routing server. This parameter should be set to a
- valid server url with the correct osrm API. If not specified the default \l {http://router.project-osrm.org/route/v1/driving/}{url} will be used.
- \note The API documentation and sources are available at \l {http://project-osrm.org/}{Project OSRM}.
-
-\row
- \li osm.routing.apiversion
- \li String defining the api version of the (custom) OSRM server. Valid values are \b{v4} and \b{v5}. The default is \b{v5}.
- This parameter should be set only if \tt{osm.routing.host} is set, and is an OSRM v4 server.
-
-\row
\li osm.geocoding.host
\li Url string set when making network requests to the geocoding server. This parameter should be set to a
valid server url with the correct osm API. If not specified the default \l {http://nominatim.openstreetmap.org/}{url} will be used.
\note The API documentation is available at \l {https://wiki.openstreetmap.org/wiki/Nominatim}{Project OSM Nominatim}.
\row
- \li osm.places.host
- \li Url string set when making network requests to the places server.
- This parameter should be set to a valid server url with the correct osm API.
- If not specified the default \l {http://nominatim.openstreetmap.org/search}{url}
- will be used.
- \note The API documentation is available at \l {https://wiki.openstreetmap.org/wiki/Nominatim}{Project OSM Nominatim}.
-\row
\li osm.mapping.cache.directory
\li Absolute path to map tile cache directory used as network disk cache.
@@ -139,13 +73,6 @@ a prefix.
QStandardPaths::writableLocation(), called with QStandardPaths::GenericCacheLocation as a parameter.
On systems that have no concept of a shared cache, the application-specific \l{QStandardPaths::CacheLocation} is used instead.
\row
- \li osm.mapping.offline.directory
- \li Absolute path to a directory containing map tiles used as an offline storage. If specified, it will work together with the network disk cache, but tiles won't get automatically
- inserted, removed or updated. The format of the tiles is the same used by the network disk cache.
-
- There is no default value, and if this property is not set, no directory will be indexed and only the network disk cache will be used
- to reduce network usage or to act as an offline storage for the currently cached tiles.
-\row
\li osm.mapping.cache.disk.cost_strategy
\li The cost strategy to use to cache map tiles on disk.
Valid values are \b bytesize and \b unitary.
@@ -184,7 +111,87 @@ a prefix.
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.
+\row
+ \li osm.mapping.custom.datacopyright
+ \li Custom data copryright string is used when setting the \l{Map::activeMapType} to \l{MapType}.CustomMap via urlprefix parameter.
+ This copyright will only be used when using the CustomMap from above. If empty no data copyright will be displayed for the custom map.
+\row
+ \li osm.mapping.custom.host
+ \li Url string of a custom tile server. This parameter should be set to a valid server url offering the correct osm API.
+ To use this server, the \l{Map::activeMapType} parameter of the \l Map should be set to the supported map type
+ whose type is \l{MapType}.CustomMap.
+ This map type is only be available if this plugin parameter is set, in which case it is
+ always \l{Map::supportedMapTypes}[supportedMapTypes.length - 1].
+ \note Setting the mapping.custom.host parameter to a new server renders the map tile cache useless for the old custommap style.
+\row
+ \li osm.mapping.custom.mapcopyright
+ \li Custom map copryright string is used when setting the \l{Map::activeMapType} to \l{MapType}.CustomMap via urlprefix parameter.
+ This copyright will only be used when using the CustomMap from above. If empty no map copyright will be displayed for the custom map.
+\row
+ \li osm.mapping.highdpi_tiles
+ \li Whether or not to request high dpi tiles. Valid values are \b true and \b false. The default value is \b false.
+ Please note that not all map types are available in high dpi. Setting this parameter to true might even have no effect if
+ no map type is available in high dpi at the moment. Provider information files for high dpi tiles are named
+ \tt{street-hires}, \tt{satellite-hires}, \tt{cycle-hires}, \tt{transit-hires}, \tt{night-transit-hires}, \tt{terrain-hires} and \tt{hiking-hires}.
+ These are fetched from the same location used for the low dpi counterparts.
+\row
+ \li osm.mapping.offline.directory
+ \li Absolute path to a directory containing map tiles used as an offline storage. If specified, it will work together with the network disk cache, but tiles won't get automatically
+ inserted, removed or updated. The format of the tiles is the same used by the network disk cache.
+ There is no default value, and if this property is not set, no directory will be indexed and only the network disk cache will be used
+ to reduce network usage or to act as an offline storage for the currently cached tiles.
+\row
+ \li osm.mapping.prefetching_style
+ \li This parameter allows to provide a hint how tile prefetching is to be performed by the engine. The default value,
+ \tt{TwoNeighbourLayers}, makes the engine prefetch tiles for the layer above and the one below the current tile
+ layer, providing ready tiles when zooming in or out from the current zoom level.
+ \tt{OneNeighbourLayer} only prefetches the one layer closest to the current zoom level.
+ Finally, \tt{NoPrefetching} allows to disable the prefetching, so only tiles that are visible will be fetched.
+ Note that, depending on the active map type, this hint might be ignored.
+\row
+ \li osm.mapping.providersrepository.address
+ \li The OpenStreetMap plugin retrieves the provider's information from a remote repository. This is done to prevent using hardcoded
+ servers by default, which may become unavailable. By default this information is fetched from \l {http://maps-redirect.qt.io} {maps-redirect.qt.io}.
+ Setting this parameter changes the provider repository address to a user-specified one, which must contain the files
+ \tt{street}, \tt{satellite}, \tt{cycle}, \tt{transit}, \tt{night-transit}, \tt{terrain} and \tt{hiking}, each of which must contain valid provider information.
+\row
+ \li osm.mapping.providersrepository.disabled
+ \li By default, the OpenStreetMap plugin retrieves the provider's information from a remote repository to avoid a loss of service due to unavailability of hardcoded services.
+ The plugin, however, still contains fallback hardcoded provider data, in case the provider repository becomes unreachable.
+ Setting this parameter to \b true makes the plugin use the hardcoded urls only and therefore prevents the plugin from fetching provider data from the remote repository.
+
+\row
+ \li osm.places.debug_query
+ \li Set this parameter to true to have an extended attribute in each result named "requestUrl", and containing the
+ url used for the query. Default is \b false.
+\row
+ \li osm.places.host
+ \li Url string set when making network requests to the places server.
+ This parameter should be set to a valid server url with the correct osm API.
+ If not specified the default \l {http://nominatim.openstreetmap.org/search}{url}
+ will be used.
+ \note The API documentation is available at \l {https://wiki.openstreetmap.org/wiki/Nominatim}{Project OSM Nominatim}.
+\row
+ \li osm.places.page_size
+ \li The amount of results in a page. Note that this value might be clamped server side. The typical maximum in standard
+ nominatim instances is 50.
+
+\row
+ \li osm.routing.apiversion
+ \li String defining the api version of the (custom) OSRM server. Valid values are \b{v4} and \b{v5}. The default is \b{v5}.
+ This parameter should be set only if \tt{osm.routing.host} is set, and is an OSRM v4 server.
+\row
+ \li osm.routing.host
+ \li Url string set when making network requests to the routing server. This parameter should be set to a
+ valid server url with the correct osrm API. If not specified the default \l {http://router.project-osrm.org/route/v1/driving/}{url} will be used.
+ \note The API documentation and sources are available at \l {http://project-osrm.org/}{Project OSRM}.
+\row
+ \li osm.useragent
+ \li User agent string set when making network requests. This parameter should be set to a
+ value that uniquely identifies the application. Note that providers might block applications not setting this
+ parameter, leaving it to the stock plugin user agent (e.g., \l {http://wiki.openstreetmap.org/wiki/Nominatim_usage_policy}{Nominatim}
+ for geocoding)
\endtable
\section1 Parameter Usage Example