Class for containing directions event data.
Represents a step in directions result.
A representation of distance as a numeric value and a display string.
A representation of duration as a numeric value and a display string.
Specifies a preferred mode of transit.
When you calculate directions, you need to specify which transportation mode to use.
By default, directions are calculated and displayed using the unit system of the origin's country or region. (Note: origins expressed using latitude/longitude coordinates rather than addresses always default to metric units.) For example, a route from "Chicago, IL" to "Toronto, ONT" will display results in miles, while the reverse route will display results in kilometers.