The distance in meters.
The unit system for output: "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 meters to the appropriate unit based on the
unitandforceUnitparameters.metric, it converts to km, m, or cm depending on the value andforceUnit.imperial, it converts to mi, ft, or in depending on the value andforceUnit.