@SuppressWarnings("unchecked")
	public synchronized List<WayOsm> getWays(String codigo, List<Long> ids){
		List<WayOsm> ways = new ArrayList<WayOsm>();

		for (Long l: ids)
			ways.add(((WayOsm) getKeyFromValue((Map< String, Map <Object, Long>>) ((Object)totalWays), codigo, l)));

		ways.remove(null);

		return ways;
	}