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

Routing with language parameter

Routing with language parameter

Allow your user to to get results in different languages so 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.
List of the supported languages can be found
here.

To request a route using 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 {
}

 

You are here