| 
    Libosmium
    2.22.0
    
   Fast and flexible C++ library for working with OpenStreetMap data 
   | 
 
#include <tile.hpp>
Public Types | |
| enum | { max_zoom = 30U } | 
Public Member Functions | |
| Tile (uint32_t zoom, uint32_t tx, uint32_t ty) noexcept | |
| Tile (uint32_t zoom, const osmium::Location &location) | |
| Tile (uint32_t zoom, const osmium::geom::Coordinates &coordinates) | |
| bool | valid () const noexcept | 
Public Attributes | |
| uint32_t | x | 
| x coordinate  More... | |
| uint32_t | y | 
| y coordinate  More... | |
| uint32_t | z | 
| Zoom level.  More... | |
A tile in the usual Mercator projection.
      
  | 
  inlineexplicitnoexcept | 
Create a tile with the given zoom level and x and y tile coordinates.
The values are not checked for validity.
      
  | 
  inlineexplicit | 
Create a tile with the given zoom level that contains the given location.
The values are not checked for validity.
      
  | 
  inlineexplicit | 
Create a tile with the given zoom level that contains the given coordinates in Mercator projection.
The values are not checked for validity.
      
  | 
  inlinenoexcept | 
Check whether this tile is valid. For a tile to be valid the zoom level must be between 0 and 30 and the coordinates must each be between 0 and 2^zoom-1.
| uint32_t osmium::geom::Tile::x | 
x coordinate
| uint32_t osmium::geom::Tile::y | 
y coordinate
| uint32_t osmium::geom::Tile::z | 
Zoom level.