@@ -208,6 +208,7 @@ private void initComponents() {
208208 routeMemberOptionPanel = new javax .swing .JPanel ();
209209 skipNodesWithRoleEmptyCb = new javax .swing .JCheckBox ();
210210 skipNodesWithRoleStopCb = new javax .swing .JCheckBox ();
211+ skipNodesWithRoleStopWithoutMatchinPlatformCb = new javax .swing .JCheckBox ();
211212 removePlatformsNotInGtfsFromOSMRelationCb = new javax .swing .JCheckBox ();
212213 gtfsDataPanel = new javax .swing .JPanel ();
213214 rbURL = new javax .swing .JRadioButton ();
@@ -443,18 +444,24 @@ private void initComponents() {
443444 gridBagConstraints .anchor = java .awt .GridBagConstraints .NORTHWEST ;
444445 optionsPanel .add (routeOptionsPanel , gridBagConstraints );
445446
446- routeMemberOptionPanel .setBorder (javax .swing .BorderFactory .createTitledBorder ("Route members options" ));
447+ routeMemberOptionPanel .setBorder (javax .swing .BorderFactory .createTitledBorder ("Route members options (applies only to PTv2 relations) " ));
447448 routeMemberOptionPanel .setLayout (new javax .swing .BoxLayout (routeMemberOptionPanel , javax .swing .BoxLayout .Y_AXIS ));
448449
449450 skipNodesWithRoleEmptyCb .setSelected (true );
450- skipNodesWithRoleEmptyCb .setText ("Remove nodes with empty role (required for PTv2)" );
451+ skipNodesWithRoleEmptyCb .setText ("Remove nodes having empty role (mandatory for PTv2)" );
452+ skipNodesWithRoleEmptyCb .setEnabled (false );
451453 routeMemberOptionPanel .add (skipNodesWithRoleEmptyCb );
452454
453- skipNodesWithRoleStopCb .setText ("Remove nodes with role 'stop' (only if PTv2 is enabled) " );
455+ skipNodesWithRoleStopCb .setText ("Remove all nodes having role 'stop'" );
454456 skipNodesWithRoleStopCb .setActionCommand ("Remove nodes with 'stop' role" );
455457 routeMemberOptionPanel .add (skipNodesWithRoleStopCb );
456458
457- removePlatformsNotInGtfsFromOSMRelationCb .setText ("Remove platform nodes without Gtfs match (only if PTv2 is enabled)" );
459+ skipNodesWithRoleStopWithoutMatchinPlatformCb .setSelected (true );
460+ skipNodesWithRoleStopWithoutMatchinPlatformCb .setText ("Remove nodes having role 'stop' that don't match a platform (recommended)" );
461+ routeMemberOptionPanel .add (skipNodesWithRoleStopWithoutMatchinPlatformCb );
462+
463+ removePlatformsNotInGtfsFromOSMRelationCb .setSelected (true );
464+ removePlatformsNotInGtfsFromOSMRelationCb .setText ("Remove platforms without Gtfs match (recommended)" );
458465 routeMemberOptionPanel .add (removePlatformsNotInGtfsFromOSMRelationCb );
459466
460467 gridBagConstraints = new java .awt .GridBagConstraints ();
@@ -672,7 +679,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
672679 .addGroup (revertChangesetPanelLayout .createParallelGroup (javax .swing .GroupLayout .Alignment .BASELINE )
673680 .addComponent (revertChangesetField , javax .swing .GroupLayout .PREFERRED_SIZE , javax .swing .GroupLayout .DEFAULT_SIZE , javax .swing .GroupLayout .PREFERRED_SIZE )
674681 .addComponent (changesetLabel ))
675- .addPreferredGap (javax .swing .LayoutStyle .ComponentPlacement .RELATED , 373 , Short .MAX_VALUE )
682+ .addPreferredGap (javax .swing .LayoutStyle .ComponentPlacement .RELATED , 376 , Short .MAX_VALUE )
676683 .addComponent (revertButton )
677684 .addContainerGap ())
678685 );
@@ -787,19 +794,23 @@ private void compareButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN
787794 processingOptions .add (ProcessingOptions .SKIP_GTFS_STATIONS );
788795 }
789796 if (skipNodesWithRoleEmptyCb .isSelected ()) {
790- processingOptions .add (ProcessingOptions .SKIP_NODES_WITH_ROLE_EMPTY );
797+ processingOptions .add (ProcessingOptions .SKIP_NODES_HAVING_ROLE_EMPTY );
791798 }
792799 if (createAsPTv2Cb .isSelected ()) {
793800 processingOptions .add (ProcessingOptions .CREATE_ROUTE_AS_PTV2 );
801+ processingOptions .add (ProcessingOptions .SKIP_NODES_HAVING_ROLE_EMPTY );
794802 }
795803 if (removePlatformsNotInGtfsFromOSMRelationCb .isSelected ()) {
796- processingOptions .add (ProcessingOptions .REMOVE_PLATFORMS_NOT_IN_GTFS_TRIP_FROM_OSM_RELATION );
804+ processingOptions .add (ProcessingOptions .SKIP_NODES_HAVING_ROLE_PLATFORM_NOT_IN_GTFS_TRIP_FROM_OSM_RELATION );
797805 }
798806 if (dontReplaceExistingOSMRouteColorCb .isSelected ()) {
799807 processingOptions .add (ProcessingOptions .DONT_REPLACE_EXISING_OSM_ROUTE_COLOR );
800808 }
801809 if (skipNodesWithRoleStopCb .isSelected ()) {
802- processingOptions .add (ProcessingOptions .SKIP_NODES_WITH_ROLE_STOP );
810+ processingOptions .add (ProcessingOptions .SKIP_NODES_HAVING_ROLE_STOP_ALL );
811+ }
812+ if (skipNodesWithRoleStopWithoutMatchinPlatformCb .isSelected ()) {
813+ processingOptions .add (ProcessingOptions .SKIP_NODES_HAVING_ROLE_STOP_WITHOUT_MATCHING_PLATFORM );
803814 }
804815 if (dontAddGtfsRouteTextColorCb .isSelected ()) {
805816 processingOptions .add (ProcessingOptions .DONT_ADD_GTFS_ROUTE_TEXT_COLOR_TO_ROUTE );
@@ -1121,6 +1132,7 @@ public void propertyChange(PropertyChangeEvent evt) {
11211132 private javax .swing .JCheckBox skipGtfsStationsCb ;
11221133 private javax .swing .JCheckBox skipNodesWithRoleEmptyCb ;
11231134 private javax .swing .JCheckBox skipNodesWithRoleStopCb ;
1135+ private javax .swing .JCheckBox skipNodesWithRoleStopWithoutMatchinPlatformCb ;
11241136 private javax .swing .JPanel stopOptionsPanel ;
11251137 private javax .swing .JTextArea taskOutput ;
11261138 private javax .swing .JLabel threshold_label ;
0 commit comments