TTGeometrySearch Class Reference

Inherits from NSObject
Declared in TTGeometrySearch.h

Overview

TomTom Geometry Search API main object. Contains methods to use Tomtom’s online search engine and provides support for both async and sync calls.

– searchWithQuery:withAsyncDelegate:

Search with async callback

- (void)searchWithQuery:(TTGeometrySearchQuery *)query withAsyncDelegate:(id<TTGeometrySearchDelegate>)delegate

Parameters

query

Object containing the data needed to perform a search.

delegate

Delegate that informs the subscriber when a search result is available. It contains a TTSearchResult object.

Discussion

Search with async callback

Declared In

TTGeometrySearch.h

– searchWithQuery:completionHandler:

Search with async block

- (void)searchWithQuery:(TTGeometrySearchQuery *)query completionHandler:(void ( ^ ) ( TTGeometrySearchResponse *response , TTResponseError *error ))completionHandler

Parameters

query

Object containing the data needed to perform a search.

completionHandler

CompletionHandler that informs the subscriber when a search result is available. It contains a TTSearchResult object.

Discussion

Search with async block

Declared In

TTGeometrySearch.h

– searchWithQuery:error:

Search with sync result

- (TTGeometrySearchResponse *)searchWithQuery:(TTGeometrySearchQuery *)query error:(TTResponseError *)error

Parameters

query

Object containing the data needed to perform a search.

error

Error

Return Value

return TTGeometrySearchResponse object.

Discussion

Search with sync result

Declared In

TTGeometrySearch.h

– cancel

Cancels the current search request

- (void)cancel

Discussion

Cancels the current search request

Declared In

TTGeometrySearch.h