THIS SDK ISDEPRECATED.

We rolled out a new and better SDK for you.

Address & POI search

Allow your users to easily search for addresses and POIs (Points of Interest) in a single step. Implement global search or near-me search in your mobile app so that it returns the best search results for your needs. Global search uses the search functionality’s default settings. It doesn’t use the user’s position or other search parameters. A sample use case: You use an app to search for a place. This search should not be limited in any way.

Use the following code snippet in your app to list general search results or display them on the map.

1let query = TTSearchQueryBuilder.create(withTerm: term)
2 .build()
3search.search(with: query)
TTSearchQuery *query = [[TTSearchQueryBuilder createWithTerm:term] build]
[self.search searchWithQuery:query];

Add the following code snippet to your app to get search results that are geo-biased for a given location in a range specified by a radius.

1let query = TTSearchQueryBuilder.create(withTerm: term)
2 .withPosition(coordinate)
3 .build()
4search.search(with: query)
TTSearchQuery *query = [[[TTSearchQueryBuilder createWithTerm:term] withPosition:coordinate] build];
[self.search searchWithQuery:query];

image

Global address search

image

Near me address search