Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • TransitOptions

Index

Properties

Optional arrivalTime

arrivalTime?: null | Date

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.

Optional departureTime

departureTime?: null | Date

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".

Optional modes

modes?: null | TransitMode[]

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

Optional routingPreference

routingPreference?: null | TransitRoutePreference

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.

Generated using TypeDoc