departureTime property

DateTime? departureTime
getter/setter pair

Optional time when travel is expected to start. Traffic speed and incidents shall be taken into account in the calculation of the route, per RouteOptions.trafficOptimizationMode. By default, the time is not set. If the time is not set, the current time will be used internally, i.e. now. Therefore, by default, a time-aware route request is initiated including traffic.

Note:

  • Both departure time and RouteOptions.arrivalTime cannot be set at the same time.
  • This parameter is handled as local time. Therefore, it is necessary to specify the time zone offset when setting the time in areas with different time zones, i.e. 2025-02-04T08:00:00+07:00

Implementation

DateTime? departureTime;