getAdministrativeRules abstract method

AdministrativeRules getAdministrativeRules(
  1. CountryCode countryCode,
  2. 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.

  • countryCode The country code for which the administrative rules will be retrieved.

  • stateCode The state name for which the administrative rules will be received. It can be null.

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);