The distance in the unit specified by the unit parameter.
The unit of the input distance type: "metric", or "imperial" (default is 'metric').
Default is auto. If auto is set, the unit is converted automatically based on the value. If a specific unit is set, the value is converted to that unit.
Optional parameter to provide custom unit symbols
The converted value and unit.
Convert distance according to the distance unit given.
Converts a distance in kilometers or miles to the appropriate unit based on the
unitandforceUnitparameters.kilometers, it converts to km, m, or cm depending on the value andforceUnit.miles, it converts to mi, ft, or in depending on the value andforceUnit.degreesorradians, it returns the value unchanged with the corresponding unit symbol.