TTBatchSearch
@interface TTBatchSearch : NSObject
TomTom Batch Search API main object. Contains methods to use Tomtom’s batch search engine and provides support for both async calls.
-
Perform batch search with query
Declaration
Objective-C
- (void)batchSearchWithQuery:(TTBatchQuery *_Nonnull)query;
Swift
func batchSearch(with query: TTBatchQuery)
Parameters
query
Object containing the data needed to perform batch search.
-
Perform batch search with query with block
Declaration
Objective-C
- (void)batchSearchWithQuery:(TTBatchQuery *_Nonnull)query completionHandler: (void (^_Nonnull)(TTBatchResponse *_Nullable, TTResponseError *_Nullable))completionHandler;
Swift
func batchSearch(with query: TTBatchQuery, completionHandler: @escaping (TTBatchResponse?, TTResponseError?) -> Void)
Parameters
query
Object containing the data needed to perform batch search.
completionHandler
CompletionHandler that informs the subscriber when a search response is available.
-
Delegate that informs the subscriber when batch search result is available.
Declaration
Objective-C
@property (readwrite, nonatomic) id<TTBatchSearchDelegate> _Nullable delegate;
Swift
weak var delegate: TTBatchSearchDelegate? { get set }