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