def format_coordinates_for_cql(tile_coordinates: str) -> str:
    """ Format the tile coordinates for the cql filter string """

    cql_filter_string = (
        f"POLYGON(({tile_coordinates[0][1]}+{tile_coordinates[0][0]},"
        f"{tile_coordinates[1][1]}+{tile_coordinates[1][0]},"
        f"{tile_coordinates[2][1]}+{tile_coordinates[2][0]},"
        f"{tile_coordinates[3][1]}+{tile_coordinates[3][0]},"
        f"{tile_coordinates[4][1]}+{tile_coordinates[4][0]}))"
    )

    return cql_filter_string