Get the first tile found adjacent to the given edge. Returns a tile identifier.

    :param tile_ids: tiles to look at for adjacency, list(Tile.tile_id)
    :param edge_coord: edge coordinate to find an adjacent tile to, int
    :return: tile identifier of an adjacent tile, Tile.tile_id

def nearest_tile_to_edge_using_tiles(tile_ids, edge_coord):
    """
    Get the first tile found adjacent to the given edge. Returns a tile identifier.

    :param tile_ids: tiles to look at for adjacency, list(Tile.tile_id)
    :param edge_coord: edge coordinate to find an adjacent tile to, int
    :return: tile identifier of an adjacent tile, Tile.tile_id
    """
    for tile_id in tile_ids:
        if edge_coord - tile_id_to_coord(tile_id) in _tile_edge_offsets.keys():
            return tile_id
    logging.critical('Did not find a tile touching edge={}'.format(edge_coord))