Skip to content
Snippets Groups Projects

Resolve "Create the Geometry, Quadkey, RelationID and Floorspace rules"

All threads resolved!
Files
6
class QuadkeyRule:
def __call__(self, longitude, latitude, *args, **kwargs):
"""
Determine the Quadkey tile of a building, based on the latitude and longitude of the
centroid.
Determine the Quadkey of the tile in which the building centroid is located given its
longitude and latitude.
Args:
longitude:
Longitude of the centroid
Longitude of the building centroid
latitude:
Latitude of the centroid
Latitude of the building centroid
Returns:
A dictionary with the zoom-level 18 Quadkey tile.
A dictionary with the zoom-level 18 Quadkey.
"""
import mercantile
Loading