tilenum_to_lonlat: tilenum_to_lonlat

Description Usage Arguments Details Value Examples

Description

Convert slippy map tiles numbers to latitude and longitude

Usage

1
tilenum_to_lonlat(x, y, zoom)

Arguments

x

slippy map tile number in x domain (left to right)

y

slippy map tile number in y domain (top to bottom)

zoom

the zoom level for the calculation. Increasing zoom increases the number of tiles.

Details

Returns the latitude and longitude of the top left corner of a slippy map tile specified by 'x', 'y' for a given zoom level.

Value

a list containing 'lat' and 'lon' - latitude and longitude.

Examples

1
2
3
4
5
tilenum_to_lonlat(
 x = 70406,
 y = 42987,
 zoom = 17
)

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