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

Language parameter

Language parameter

Develop an international app that can be used in different languages. Enhance the search functionality with the language parameter so that the search returns results in a specific language.
Sample use case: If your mobile device is set to a particular language, you see it in your app as well.

Use the code snippet presented below to try this in your app.

- (void)performAddressSearchWithQuery:(NSString *)query
                             language:(TTLanguage)language {
    TTSearchQueryBuilder *queryBuilder = [TTSearchQueryBuilder
                                            createWithTerm:query];
    [queryBuilder withLanguage:language];
    TTSearchQuery *searchQuery = [queryBuilder build];
    [self.search searchWithQuery:searchQuery withAsyncDelegate:self];
}

 

You are here