directionsDistanceUnits property

UnitSystem directionsDistanceUnits

Directions distance units.

Describes the unit of measurement for the length of directions. Default value UnitSystem.metric will be returned on error.

Implementation

UnitSystem get directionsDistanceUnits {
  final coreValue = _withThrowingErrorHandler((errorHandler) {
    return runtimecore
        .RT_ClosestFacilityParameters_getDirectionsDistanceUnits(
      _handle,
      errorHandler,
    );
  });
  return UnitSystem._fromCoreValue(
    coreValue,
  );
}
void directionsDistanceUnits=(UnitSystem value)

Implementation

set directionsDistanceUnits(UnitSystem value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_ClosestFacilityParameters_setDirectionsDistanceUnits(
      _handle,
      value.coreValue,
      errorHandler,
    );
  });
}