Use departure date instead of arrive by
This commit is contained in:
@@ -61,7 +61,7 @@ func (c *Client) PlanWithResponse(ctx context.Context, params *PlanParams) (*Tra
|
||||
query.Set("fastestDirectFactor", "1.5")
|
||||
query.Set("joinInterlinedLegs", "false")
|
||||
query.Set("maxMatchingDistance", "250")
|
||||
query.Set("arriveBy", "true")
|
||||
// query.Set("arriveBy", "true")
|
||||
|
||||
u.RawQuery = query.Encode()
|
||||
|
||||
@@ -102,4 +102,5 @@ func (c *Client) PlanWithResponse(ctx context.Context, params *PlanParams) (*Tra
|
||||
Msg("Transitous API response received")
|
||||
|
||||
return &transitousResponse, nil
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user