olp-cpp-sdk
1.22.0
|
Encapsulates the fields required to prefetch the specified layers, tiles, and levels. More...
#include <PrefetchTilesRequest.h>
Public Member Functions | |
const std::vector< geo::TileKey > & | GetTileKeys () const |
Get the vector of the root tile keys. More... | |
PrefetchTilesRequest & | WithTileKeys (std::vector< geo::TileKey > tile_keys) |
Sets the vector of the root tile keys for the request. More... | |
unsigned int | GetMinLevel () const |
Gets the minimum tiles level to prefetch. More... | |
PrefetchTilesRequest & | WithMinLevel (unsigned int min_level) |
Sets the minimum tiles level for the request. More... | |
unsigned int | GetMaxLevel () const |
Gets the maximum tiles level to prefetch. More... | |
PrefetchTilesRequest & | WithMaxLevel (unsigned int max_level) |
Sets the maximum tile level for the request. More... | |
const boost::optional< std::string > & | GetBillingTag () const |
Gets the billing tag to group billing records together. More... | |
PrefetchTilesRequest & | WithBillingTag (boost::optional< std::string > tag) |
Sets the billing tag for the request. More... | |
PrefetchTilesRequest & | WithBillingTag (std::string &&tag) |
Sets the billing tag for the request. More... | |
PrefetchTilesRequest & | WithDataAggregationEnabled (bool data_aggregation_enabled) |
Changes the prefetch behavior when prefetching a list of tiles. More... | |
bool | GetDataAggregationEnabled () const |
Gets the data aggregation flag. More... | |
uint32_t | GetPriority () const |
Gets the request priority. More... | |
PrefetchTilesRequest & | WithPriority (uint32_t priority) |
Sets the priority of the prefetch request. More... | |
std::string | CreateKey (const std::string &layer_id) const |
Creates a readable format for the request. More... | |
Encapsulates the fields required to prefetch the specified layers, tiles, and levels.
Tile keys can be at any level. Tile keys below the maximum tile level have the ancestors fetched from the minimum tile level. The children of the tile keys above the minimum tile level are downloaded from the minimum to maximum tile level. The tile keys above the maximum tile level are recursively downloaded down to the maximum tile level.
|
inline |
Creates a readable format for the request.
layer_id | The ID of the layer that is used for the request. |
|
inline |
Gets the billing tag to group billing records together.
The billing tag is an optional free-form tag that is used for grouping billing records together. If supplied, it must be 4–16 characters long and contain only alphanumeric ASCII characters [A-Za-z0-9].
BillingTag
string or boost::none
if the billing tag is not set.
|
inline |
Gets the data aggregation flag.
|
inline |
Gets the maximum tiles level to prefetch.
|
inline |
Gets the minimum tiles level to prefetch.
|
inline |
Gets the request priority.
The default priority is Priority::LOW
.
|
inline |
Get the vector of the root tile keys.
|
inline |
Sets the billing tag for the request.
GetBillingTag()
for information on usage and format.tag | The BillingTag string or boost::none . |
PrefetchTilesRequest
instance.
|
inline |
Sets the billing tag for the request.
GetBillingTag()
for information on usage and format.tag | The rvalue reference to the BillingTag string or boost::none . |
PrefetchTilesRequest
instance.
|
inline |
Changes the prefetch behavior when prefetching a list of tiles.
In case a tile does not exist, the prefetch algorithm searches for the nearest parent and prefetches it.
data_aggregation_enabled | The boolean parameter that enables or disables the aggregation. |
PrefetchTilesRequest
instance.
|
inline |
Sets the maximum tile level for the request.
max_level | The maximum tile level to prefetch. |
PrefetchTilesRequest
instance.
|
inline |
Sets the minimum tiles level for the request.
min_level | The minimum tiles level to prefetch. |
PrefetchTilesRequest
instance.
|
inline |
Sets the priority of the prefetch request.
priority | The priority of the request. |
PrefetchTileRequest
instance.
|
inline |
Sets the vector of the root tile keys for the request.
tile_keys | The vector with the root tile keys of the prefetch. |
PrefetchTilesRequest
instance.