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

Category search

Help your users search for specific types of places with category search.
Sample use case: You are preparing for a long drive and would like to find gas stations nearby.

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

- (void)performCategorySearchWithQuery:(NSString *)query {
    TTSearchQueryBuilder *queryBuilder = [TTSearchQueryBuilder
                                            createWithTerm:query];
    [queryBuilder withCategory:YES];

    [queryBuilder withPosition:self.locationManager.location.coordinate];
    TTSearchQuery *searchQuery = [queryBuilder build];
    [self.search searchWithQuery:searchQuery];
}

 

For category search we use Online search - LowBandwidthSearch as in “Address and POI search”.
The difference is in endpoint:



Category search

GET https://<baseURL>/search/<versionNumber>/cS/<category>...

For complete description go to:

Below we present a exemplary application view utilizing Category Search.



image

Address search with category: Parking

image

Address search with category: Gas

You are here