getAdministrativeRules abstract method
- CountryCode countryCode,
- String? stateCode
Synchronously load the administrative rules for the specified country and state.
Note: The state_code parameter can be set to null. In this case, even if the country has multiple states, each with
their own administrative rules, an AdministrativeRules object will be returned, containing the administrative
rules valid for the entire country. These rules can however be overwritten by the state rules when the driver is in that
specific state, so it is recommended to always retrieve the rules for a specific state for higher accuracy.
Returns an AdministrativeRules object which contains the administrative rules for the specified country and
state.
-
countryCodeThe country code for which the administrative rules will be retrieved. -
stateCodeThe state name for which the administrative rules will be received. It can benull.
Returns AdministrativeRules. Requested administrative rules for the country and the state specified.
Throws MapDataLoaderExceptionException. Specifies reason, why the administrative rules were not retrieved.
Implementation
AdministrativeRules getAdministrativeRules(CountryCode countryCode, String? stateCode);