Skip to content

Latest commit

 

History

History
34 lines (18 loc) · 1.47 KB

TransitOptions.md

File metadata and controls

34 lines (18 loc) · 1.47 KB

See html formatted version

TransitOptions interface

google.maps.TransitOptions interface

The TransitOptions object to be included in a DirectionsRequest when the travel mode is set to TRANSIT.

Properties

undefined

Type:  Date optional

The desired arrival time for the route, specified as a Date object. The Date object measures time in milliseconds since 1 January 1970. If arrival time is specified, departure time is ignored.

undefined

Type:  Date optional

The desired departure time for the route, specified as a Date object. The Date object measures time in milliseconds since 1 January 1970. If neither departure time nor arrival time is specified, the time is assumed to be "now".

undefined

Type:  Array<TransitMode> optional

One or more preferred modes of transit, such as bus or train. If no preference is given, the API returns the default best route.

undefined

Type:  TransitRoutePreference optional

A preference that can bias the choice of transit route, such as less walking. If no preference is given, the API returns the default best route.