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

Departure/Arrival time

Departure/Arrival time

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

Sample use case: You have a busy schedule and need to carefully plan your day. You use the "arrive at" option to learn when you need to leave in order to be at a specific place at a specific time. You then use "depart at" to know your ETA for your next appointment.

In the following example you can see a sample implementation using the arrive at and depart at parameters for a trip from Amsterdam to Rotterdam. The example uses a standard date/time picker widget.

_

let query = TTRouteQueryBuilder.create(withDest: TTCoordinate.ROTTERDAM(), andOrig: TTCoordinate.AMSTERDAM())
    .withDepartAt(date)
    .build()
self.routePlanner.plan(with: query)
TTRouteQuery *query = [[[TTRouteQueryBuilder createWithDest:[TTCoordinate ROTTERDAM] andOrig:[TTCoordinate AMSTERDAM]] withDepartAt:date] build];
[weakSelf.routePlanner planRouteWithQuery:query];

 

_

let query = TTRouteQueryBuilder.create(withDest: TTCoordinate.ROTTERDAM(), andOrig: TTCoordinate.AMSTERDAM())
    .withArriveAt(date)
    .build()
self.routePlanner.plan(with: query)
TTRouteQuery *query = [[[TTRouteQueryBuilder createWithDest:[TTCoordinate ROTTERDAM] andOrig:[TTCoordinate AMSTERDAM]] withArriveAt:date] build];
[weakSelf.routePlanner planRouteWithQuery:query];

 

image

Deprature at

image

Arrival at