def nearest_tile_to_node_using_tiles(tile_ids, node_coord):
    """
    Get the first tile found adjacent to the given node. Returns a tile identifier.

    :param tile_ids: tiles to look at for adjacency, list(Tile.tile_id)
    :param node_coord: node 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 node_coord - tile_id_to_coord(tile_id) in _tile_node_offsets.keys():
            return tile_id
    logging.critical('Did not find a tile touching node={}'.format(node_coord))
Get the first tile found adjacent to the given node. Returns a tile identifier.

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