THIS SDK ISDEPRECATED.

We rolled out a new and better SDK for you.

Routing with waypoints

Allow your users to plan a route with up to 50 waypoints.

Sample use case: You plan a trip from the TomTom office in Amsterdam to their office in Berlin. There are a few places that you would like to visit during the drive. You would like to use your app to plan your route so it includes the places you would like to visit on the way, and check the total distance and ETA as well as see the entire route on the map.

1let query = TTRouteQueryBuilder.create(withDest: TTCoordinate.BERLIN(), andOrig: TTCoordinate.AMSTERDAM())
2 .withWayPoints(&waypoints, count: UInt(waypoints.count))
3 .build()
4routePlanner.plan(with: query)
TTRouteQuery *query = [[[TTRouteQueryBuilder createWithDest:[TTCoordinate BERLIN] andOrig:[TTCoordinate AMSTERDAM]] withWayPoints:self.waypoints count:3] build]
[self.routePlanner planRouteWithQuery:query];

image

Initial order

image

No waypoints