Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix departureTime parameter when arrivalTime parameter is present #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

j133y
Copy link

@j133y j133y commented May 22, 2023

As mentioned in HERE documentation:
You can use either departureTime or arrivalTime in a route request, but not both.

By sending departureTime with value any when arrivalTime is also set, the API returns an error:

{"title":"Invalid request","status":400,"code":"E605018","cause":"Invalid combination of departure and arrival time","action":"","correlationId":"de841201-f13c-4405-aa7a-c6fdfb8df9c2"}

To avoid this behaviour, when arrivalTime is set, departureTime should not me send.

More information: https://developer.here.com/documentation/routing-api/dev_guide/topics/use-cases/route-start-end-time.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant