import math


def tile_resolution(zoom, latitude):
    """Compute resolution for a given position

    Notes:
        https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames

    Args:
        zoom (int): zoom level
        latitude (float): latitude in degrees

    Returns:
        (float): [m.pix-1] number of meters per pixel in the tile
    """
    return 156543.034 * math.cos(math.radians(latitude)) / (2 ** zoom)