quadkey_to_tileXY: Convert a QuadKey into tile XY coordinates.

View source: R/qk_to_latlong_functions.R

quadkey_to_tileXYR Documentation

Convert a QuadKey into tile XY coordinates.

Description

For further information, refer to the Microsoft Bing Maps Tile System documentation.

Usage

quadkey_to_tileXY(quadkey)

Arguments

quadkey

A QuadKey as a single string.

Details

Converting latitude/longitude coordinates into a QuadKey and then back to latitude/longitude won't yield identical values, unless the initial latitude/longitude coordinates correspond to the upper-left QuadKey's pixel and tile XY coordinates at the same zoom level.

Understanding this distinction is crucial for the accurate use of these functions in coordinate conversions.

For a detailed explanation on how to use this and other similar quadkeyr functions, read the the vignette: https://docs.ropensci.org/quadkeyr/articles/quadkey_to_sf_conversion.html

Value

A list returning the tile X, tile Y coordinates and the zoom level.

References

https://learn.microsoft.com/en-us/bingmaps/articles/bing-maps-tile-system

Examples


quadkey_to_tileXY(quadkey = "213")


quadkeyr documentation built on April 3, 2025, 8:52 p.m.