<google__maps> update departure_time to accept 'now' (#38088)

* adding my name/github link

* updating departure_time to accept 'now'

* removing myself from "definitions by..."
This commit is contained in:
Gabe O'Leary 2019-09-04 16:28:39 -07:00 committed by Andrew Casey
parent 871e4ab3d1
commit 13d22ea3a5

View File

@ -575,7 +575,7 @@ export interface DirectionsRequest {
* This option is only available if the request contains a valid API key, or a valid Google Maps APIs Premium Plan client ID
* and signature. The `departure_time` must be set to the current time or some time in the future. It cannot be in the past.
*/
departure_time?: Date | number;
departure_time?: Date | number | 'now';
/**
* Specifies the assumptions to use when calculating time in traffic.
* This setting affects the value returned in the `duration_in_traffic` field in the response, which contains the predicted time