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.

_

let query = TTSearchQueryBuilder.create(withTerm: "parking")
    .withCategory(true)
    .withPosition(locationManager.lastLocation!.coordinate)
    .build()
search.search(with: query)
TTSearchQuery *query =
    [[[[TTSearchQueryBuilder createWithTerm:@"parking"] withCategory:YES]
        withPosition:self.locationManager.lastLocation.coordinate] build];
[self.search searchWithQuery:query];

 
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