Class DrivingDirectionDefaultByCountry


  • public class DrivingDirectionDefaultByCountry
    extends Object
    convenience class that provides the driving direction per country (left hand drive or not) based on https://en.wikipedia.org/wiki/Left-_and_right-hand_traffic
    Author:
    markr
    • Field Detail

      • leftHandDriveCountries

        protected static Set<String> leftHandDriveCountries
        all Left hand drive countries which determine the default direction on one way roundabouts when not tagged
    • Constructor Detail

      • DrivingDirectionDefaultByCountry

        public DrivingDirectionDefaultByCountry()
    • Method Detail

      • initialiseLeftHandDriveCountries

        protected static void initialiseLeftHandDriveCountries()
        initialise all left hand drive countries
      • isLeftHandDrive

        public static boolean isLeftHandDrive​(String countryName)
        check if country is left hand drive or not
        Parameters:
        countryName - to check
        Returns:
        true when left hand drive, false otherwise
      • isRightHandDrive

        public static boolean isRightHandDrive​(String countryName)
        check if country is left hand drive or not
        Parameters:
        countryName - to check
        Returns:
        true when left hand drive, false otherwise