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

Routing with language parameter

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:

_

let query = TTRouteQueryBuilder.create(withDest: TTCoordinate.BERLIN(), andOrig: TTCoordinate.AMSTERDAM())
    .withInstructionsType(.text)
    .withLang(language)
    .build()
routePlanner.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 {
}