maha.parsers.rules.distance.utils#
Module Contents#
Functions#
|
Converts a list of distances to another unit using the mapping |
- 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