THIS SDK ISDEPRECATED.

We rolled out a new and better SDK for you.

Travel modes

Allow your users to plan a route for different travel modes.

Sample use case: You want to check what travel mode (car or truck) gives you the best ETA for a trip from Amsterdam to Rotterdam.

1let query = TTRouteQueryBuilder.create(withDest: TTCoordinate.AMSTERDAM(), andOrig: TTCoordinate.ROTTERDAM())
2 .withTravelMode(.car)
3 .build()
4routePlanner.plan(with: query)
TTRouteQuery *query = [[[TTRouteQueryBuilder createWithDest:[TTCoordinate AMSTERDAM] andOrig:[TTCoordinate ROTTERDAM]] withTravelMode:TTOptionTravelModeCar] build]
[self.routePlanner planRouteWithQuery:query];

image

Travel mode car

image

Travel mode truck

image

Travel mode pedestrian