lonlat_to_tilenum: lonlat_to_tilenum

Description Usage Arguments Details Value Examples

Description

Convert longitude and latitude to slippy tile numbers

Usage

1
lonlat_to_tilenum(lon_deg, lat_deg, zoom)

Arguments

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.

Details

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.

Value

a list containing 'x' and 'y' - the tile numbers.

Examples

1
2
3
4
5
lonlat_to_tilenum(
 lon = 13.37771496361961,
 lat = 52.51628011262304,
 zoom = 17
)

slippymath documentation built on June 28, 2019, 5:04 p.m.