THIS SDK ISDEPRECATED.

We rolled out a new and better SDK for you.

Routing with language parameter

Allow your user to get results in different languages to make your app international. The language parameter determines the language of the guidance messages. It does not affect proper nouns (the names of streets, plazas, etc.).

Sample use case: You are planning a journey and you want to have the list of instructions in different languages. A list of the supported languages can be found at the Calculate Route endpoint.

To request a route using the language parameter:

1let query = TTRouteQueryBuilder.create(withDest: TTCoordinate.BERLIN(), andOrig: TTCoordinate.AMSTERDAM())
2 .withInstructionsType(.text)
3 .withLang(language)
4 .build()
5routePlanner.plan(with: query)
TTRouteQuery *query = [[[[TTRouteQueryBuilder createWithDest:[TTCoordinate BERLIN] andOrig:[TTCoordinate AMSTERDAM]] withInstructionsType:TTOptionInstructionsTypeText] withLang:language] build]
[self.routePlanner planRouteWithQuery:query];
func route(_: TTRoute, completedWith result: TTRouteResult) {
}
- (void)route:(TTRoute *)route completedWithResult:(TTRouteResult *)result {
}