private void onClickRB(ActionEvent e) throws Exception {
        cbRoute.removeAllItems();
        LinkedList<Route> routes = calculator.getRoutes();
        cbRoute.addItem("All");
        if(e == null)
        {
            for(Route route : routes)
            {
                if((route.getType() + "").equalsIgnoreCase("highway")) {
                    cbRoute.addItem(route.getCbString());
                }
            }
        }
        else
        {
            LinkedList<String> selectedRouteTypes = new LinkedList<>();

            if(rbGR.isSelected())
            {
                selectedRouteTypes.add(rbGR.getText().toLowerCase() + "road");
            }
            if(rbCR.isSelected())
            {
                selectedRouteTypes.add(rbCR.getText().toLowerCase() + "road");
            }
            if(rbHW.isSelected())
            {
                selectedRouteTypes.add(rbHW.getText().toLowerCase());
            }
            for(Route route : routes)
            {
                if(selectedRouteTypes.contains((route.getType() + "").toLowerCase())) {
                    cbRoute.addItem(route.getCbString());
                }
            }
        }
    }