@ Pure public static LegalTrafficSide getPreferredLegalTrafficSide ( ) { final Preferences prefs = Preferences . userNodeForPackage ( RoadNetworkConstants . class ) ; String name = null ; if ( prefs != null ) { name = prefs . get ( "LEGAL_TRAFFIC_SIDE" , null ) ; //$NON-NLS-1$ } if ( name != null ) { LegalTrafficSide side ; try { side = LegalTrafficSide . valueOf ( name ) ; } catch ( Throwable exception ) { side = null ; } if ( side != null ) { return side ; } } return LegalTrafficSide . getCurrent ( ) ; }
Replies the preferred side of traffic for vehicles on road segments .