maha.parsers.rules.distance.utils#

Module Contents#

Functions#

convert_between_distances(*distances, to_unit)

Converts a list of distances to another unit using the mapping DISTANCE_CONVERSION_MAP.

convert_between_distances(*distances, to_unit)[source]#

Converts a list of distances to another unit using the mapping DISTANCE_CONVERSION_MAP.

Parameters
  • *distances (ValueUnit) – List of distances to convert.

  • to_unit (DistanceUnit) – The unit to convert to.

Returns

The converted value.

Return type

float