Package org.planit.utils.locale
Class DrivingDirectionDefaultByCountry
- java.lang.Object
-
- org.planit.utils.locale.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 Summary
Fields Modifier and Type Field Description protected static Set<String>
leftHandDriveCountries
all Left hand drive countries which determine the default direction on one way roundabouts when not tagged
-
Constructor Summary
Constructors Constructor Description DrivingDirectionDefaultByCountry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static void
initialiseLeftHandDriveCountries()
initialise all left hand drive countriesstatic boolean
isLeftHandDrive(String countryName)
check if country is left hand drive or notstatic boolean
isRightHandDrive(String countryName)
check if country is left hand drive or not
-
-
-
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
-
-