google-maps-documentation

UnitSystem constants

google.maps.UnitSystem constants

The valid unit systems that can be specified in a DirectionsRequest.

Constants
IMPERIAL Specifies that distances in the DirectionsResult should be expressed in imperial units.
METRIC Specifies that distances in the DirectionsResult should be expressed in metric units.