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

Batch search

Allow your users to process synchronous batch search calls with the Batch Search
service integrated. When the service receives a request, it will respond as soon as the batch items
are calculated and there will be no possibility to retrieve the results later on.

Supported types of requests

  1. Geometry Search

  2. Fuzzy Search

  3. Reverse Geocoder

Different types of requests can be mixed in one batch request. The information about the limit of
queries, request processing time and other details are described in Batch Search
service documentation. An error in one of the batch requests causes the whole batch to fail.

Sample use case: You want to simultaneously search for different categories within different locations.

Use the code below to try this in your app:

TTSearchQuery *searchQuery1 = [[[[TTSearchQueryBuilder createWithTerm:term]
                                withPosition:COORDINATE_AMSTERDAM_CENTER_LOCATION]
                               withLimit:@(10)]
                              build];
TTSearchQuery *searchQuery2 = [[[[TTSearchQueryBuilder createWithTerm:term]
                                 withPosition:COORDINATE_HAARLEM]
                                withLimit:@(15)]
                               build];
TTSearchCircle *geometry = [TTSearchCircle circleWithCenter:COORDINATE_HOOFDDORP radius:GEOMETRY_RADIUS];
TTGeometrySearchQuery *geometryQuery = [[TTGeometrySearchQueryBuilder createWithTerm:term
                                                                        searchShapes:[NSArray arrayWithObject:geometry]]
                                        build];

TTBatchQuery *batchQuery = [[[[TTBatchQueryBuilder createSearchQuery:searchQuery1]
                              addSearchQuery:searchQuery2]
                             addGeometryQuery:geometryQuery]
                            build];

[self.batch batchSearchWithQuery:batchQuery];

 

Sample views utilizing data retrieved using Batch Search service:


image

Search results for different locations

You are here