olp-cpp-sdk
1.22.0
|
Encapsulates the fields required to request tile for the given key. More...
#include <TileRequest.h>
Public Member Functions | |
const boost::optional< std::string > & | GetBillingTag () const |
Gets the billing tag to group billing records together. More... | |
TileRequest & | WithBillingTag (boost::optional< std::string > tag) |
Sets the billing tag for the request. More... | |
TileRequest & | WithBillingTag (std::string tag) |
Sets the billing tag for the request. More... | |
TileRequest & | WithTileKey (geo::TileKey tile_key) |
Sets the tile key for the request. More... | |
const geo::TileKey & | GetTileKey () const |
Gets a tile key value. More... | |
FetchOptions | GetFetchOption () const |
Gets the fetch option that controls how requests are handled. More... | |
TileRequest & | WithFetchOption (FetchOptions fetch_option) |
Sets the fetch option that you can use to set the source from which data should be fetched. More... | |
uint32_t | GetPriority () const |
Gets the request priority. More... | |
TileRequest & | WithPriority (uint32_t priority) |
Sets the priority of the request. More... | |
std::string | CreateKey (const std::string &layer_id) const |
Creates a readable format for the request. More... | |
Encapsulates the fields required to request tile for the given key.
You should specify tile key. Additionaly offset and depth could be set. If not set used default values, for offset default value is 2, for depth - 4.
|
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 fetch option that controls how requests are handled.
The default option is OnlineIfNotFound
that queries the network if the requested resource is not in the cache.
|
inline |
Gets the request priority.
The default priority is Priority::NORMAL
.
|
inline |
Gets a tile key value.
boost::none
if tile_key is not set.
|
inline |
Sets the billing tag for the request.
GetBillingTag()
for information on usage and format.tag | The BillingTag string or boost::none . |
TileRequest
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 . |
TileRequest
instance.
|
inline |
Sets the fetch option that you can use to set the source from which data should be fetched.
GetFetchOption()
for information on usage and format.fetch_option | The FetchOption enum. |
TileRequest
instance.
|
inline |
Sets the priority of the request.
priority | The priority of the request. |
TileRequest
instance.
|
inline |
Sets the tile key for the request.
tile_key | Tile key value. |
TileRequest
instance.