getDistance

Returns distance traveled by the user in specified units.

Return

distance traveled by the user in specified units

Parameters

units

distance units for conversion