google-maps-documentation

Distance interface

google.maps.Distance interface

A representation of distance as a numeric value and a display string.

Properties
text
Type:  string
A string representation of the distance value, using the UnitSystem specified in the request.
value
Type:  number
The distance in meters.