Skip to content

Commit

Permalink
fix(definition): duration_in_traffic route leg property is optional (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh authored Jan 20, 2021
1 parent 99e1bb9 commit 1d0fc62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ export interface RouteLeg {
* - The request includes a `departure_time` parameter.
* - Traffic conditions are available for the requested route.
*/
duration_in_traffic: Duration;
duration_in_traffic?: Duration;
/** contains the estimated time of arrival for this leg. This property is only returned for transit directions. */
arrival_time: Time;
/**
Expand Down

0 comments on commit 1d0fc62

Please sign in to comment.