Description Usage Arguments Details Value Examples
Convert longitude and latitude to slippy tile numbers
1 | lonlat_to_tilenum(lon_deg, lat_deg, zoom)
|
lon_deg |
degrees longitude for point |
lat_deg |
degrees latitude for point |
zoom |
zoom level for tile calculation. Increasing zoom increases the number of tiles. |
Returns the Open Street Map slippy map tile numbers (x, y) the supplied latitude and longitude fall on, for a given zoom level.
The point specified by lon_deg' and 'lat_deg' is assumed to be in ESPG:4326 coordinate reference system.
a list containing 'x' and 'y' - the tile numbers.
1 2 3 4 5 | lonlat_to_tilenum(
lon = 13.37771496361961,
lat = 52.51628011262304,
zoom = 17
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.