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

Route types

Route types

Allow your users to plan a route that will be the fastest, shortest, most thrilling or greenest.

Sample use case: You plan a trip from Amsterdam to Rotterdam and want to compare ETAs for different types of routes to choose the best fit for your preferences.

We can use types like:

  • Fastest

  • Shortest

  • Easiest

_

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

 



image

Route type fastest.

image

Route type shortest.

image

Route type eco.

You are here