powered by
Convert longitude and latitude to slippy tile numbers
lonlat_to_tilenum(lon_deg, lat_deg, zoom)
degrees longitude for point
degrees latitude for point
zoom level for tile calculation. Increasing zoom increases the number of tiles.
a list containing `x` and `y` - the tile numbers.
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.
# NOT RUN { lonlat_to_tilenum( lon = 13.37771496361961, lat = 52.51628011262304, zoom = 17 ) # }
Run the code above in your browser using DataLab