THIS SDK ISDEPRECATED.

We rolled out a new and better SDK for you.

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.

1let query = TTRouteQueryBuilder.create(withDest: TTCoordinate.ROTTERDAM(), andOrig: TTCoordinate.AMSTERDAM())
2 .withDepartAt(date)
3 .build()
4self.routePlanner.plan(with: query)
TTRouteQuery *query = [[[TTRouteQueryBuilder createWithDest:[TTCoordinate ROTTERDAM] andOrig:[TTCoordinate AMSTERDAM]] withDepartAt:date] build]
[weakSelf.routePlanner planRouteWithQuery:query];
1let query = TTRouteQueryBuilder.create(withDest: TTCoordinate.ROTTERDAM(), andOrig: TTCoordinate.AMSTERDAM())
2 .withArriveAt(date)
3 .build()
4self.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