We rolled out a new and better SDK for you.
The TTL2Search class encapsulates a connection bridge to the TomTom Search API service.
Call the searchWithQuery method to perform a search. The call uses the TTL2SearchQuery parameter from the TTL2Search class. Use the builder design pattern to simplify construction of the TTL2SearchQuery.
The API reference contains a detailed specification of the search objects and options. It also includes a number of functional examples to illustrate different uses cases.
Search result delegate
Every search Request requires a TTL2SearchDelegate object. The object asynchronously calls one of two methods when the search result is ready:
- If the search query is successful, the first method returns an array of search results.
- If the query fails, the second method returns an error code and an error message.