Skip to content
πŸŽ‰ Apache Sedona 1.9.1 is out now! πŸ—ΊοΈ Geography SQL functions, Box2D & Box3D types, raster Python UDFs & more. Read the release notes β†’

ST_BingTilesAround

Introduction: Returns an array of Bing Tile quadkey strings representing the neighborhood tiles around the tile that contains the given point (longitude, latitude) at the specified zoom level. Returns the 3Γ—3 neighborhood (up to 9 tiles), or fewer tiles at the edges/corners of the map.

Format: ST_BingTilesAround(longitude: Double, latitude: Double, zoomLevel: Int)

Return type: Array<String>

SQL example:

SELECT ST_BingTilesAround(60, 30.12, 1)

Output:

[0, 2, 1, 3]

ST_BingTilesAround