Sorry, you need to enable JavaScript to visit this website.

Routing with departure/arrival time

Routing with departure/arrival time

Allow your users to get a route planned for specific arrival and departure time so they can use this
information to adjust their commute plans.

Sample use case: You have a busy schedule and you need to plan your day optimally.
You can use the arrival at option to learn when you need to depart to be at a specific time at a
specific place. You can use depart at to know the time of arrival to the place you have your next appointment at.

In the example below you can see an implementation of using the arrive at and depart at parameters for
a trip from Amsterdam to Berlin using departAt parameters.
The departAt value must be in the future. The departAt parameter can not be used in conjunction with arriveAt.

return RouteQueryBuilder.create(routeConfig.getOrigin(), routeConfig.getDestination())
        .withReport(Report.EFFECTIVE_SETTINGS)
        .withInstructionsType(InstructionsType.TEXT)
        .withDepartAt(departureTime)
        .withConsiderTraffic(false).build();

The date and time of arrival at the destination point must be specified as a dateTime.
The arriveAt value must be in the future. The arriveAt parameter cannot be used in conjunction with departAt,
minDeviationDistance or minDeviationTime. It cannot be used in calculateReachableRange requests.

RouteQuery queryBuilder = RouteQueryBuilder.create(routeConfig.getOrigin(), routeConfig.getDestination())
        .withReport(Report.EFFECTIVE_SETTINGS)
        .withInstructionsType(InstructionsType.TEXT)
        .withArriveAt(arrivalTime)
        .withConsiderTraffic(false).build();

You are here