We rolled out a new and better SDK for you.

Supporting Points

Allow your user to reconstruct his/her route using supporting points. Supporting points can be combined with minDeviationDistance or minDeviationTime constraints. When these constraints are used, the alternative routes will follow the reference route from the origin point for the given time or distance. In other words, alternative routes diverge from the reference route after the given constraints. When using supporting points, intermediate locations (waypoints) are not supported.

Sample use case: You have route coordinates saved on your device. You want to reconstruct the route based on the coordinates (supporting points) and calculate zero or more alternative routes to this reference route.

To request a route with supporting points support:

1let query = TTRouteQueryBuilder.create(withDest: TTCoordinate.PORTUGAL_COIMBRA(), andOrig: TTCoordinate.PORTUGAL_NOVA())
2 .withMaxAlternatives(1)
3 .withMinDeviationTime(0)
4 .withSupportingPoints(&supprotingPoints, count: UInt(supprotingPoints.count))
5 .withMinDeviationDistance(10000)
6 .build()
7routePlanner.plan(with: query)
TTRouteQuery *query = [[[[[[TTRouteQueryBuilder createWithDest:[TTCoordinate PORTUGAL_COIMBRA] andOrig:[TTCoordinate PORTUGAL_NOVA]] withMaxAlternatives:1] withMinDeviationTime:0] withSupportingPoints:self.suporrtingPoints count:5] withMinDeviationDistance:0] build]
[self.routePlanner planRouteWithQuery:query];


Min. deviation distance: 0 m


Min. deviation distance: 10 km