@SuppressWarnings("unchecked")
	public synchronized void deleteNodes(String key, List<Long> ids){

		for (Long id : ids){

			NodeOsm node = ((NodeOsm) getKeyFromValue((Map< String, Map <Object, Long>>) ((Object)totalNodes), key, id));
			totalNodes.get(key).remove(node);

			for (WayOsm w : totalWays.get(key).keySet())
				w.getNodes().remove(id);
		}
	}