TTAlongRouteSearch Class Reference
Inherits from | NSObject |
---|---|
Declared in | TTAlongRouteSearch.h |
Overview
Performs along route search action based on provided query object and returns the result with usage of callback implementation.
delegate
Delegate that informs the subscriber when a search result is available. It contains a TTAlongRouteSearch object.
@property (nonatomic, weak) id<TTAlongRouteSearchDelegate> _Nullable delegate
Discussion
Delegate that informs the subscriber when a search result is available. It contains a TTAlongRouteSearch object.
Declared In
TTAlongRouteSearch.h
– searchWithQuery:withAsyncDelegate:
Performs along route search action based on provided query object and returns the result with usage of dlegate callback implementation. (Deprecated: This method is deprecated, use searchWithQuery without passing delegate here instead.)
- (void)searchWithQuery:(TTAlongRouteSearchQuery *_Nonnull)query withAsyncDelegate:(id<TTAlongRouteSearchDelegate> _Nonnull)delegate
Parameters
query |
The object which contains data necessary to execute search action |
---|---|
delegate |
Delegate that informs the subscriber when a search result is available. It contains a TTAlongRouteSearch object. |
Discussion
Performs along route search action based on provided query object and returns the result with usage of dlegate callback implementation.
Declared In
TTAlongRouteSearch.h
– searchWithQuery:
Performs along route search action based on provided query object and returns the result with usage of dlegate callback implementation.
- (void)searchWithQuery:(TTAlongRouteSearchQuery *_Nonnull)query
Parameters
query |
The object which contains data necessary to execute search action |
---|
Discussion
Performs along route search action based on provided query object and returns the result with usage of dlegate callback implementation.
Declared In
TTAlongRouteSearch.h
– searchWithQuery:completionHandler:
Performs along route search action based on provided query object and returns the result with usage of completion handler callback implementation.
- (void)searchWithQuery:(TTAlongRouteSearchQuery *_Nonnull)query completionHandler:(void ( ^ _Nonnull ) ( TTAlongRouteSearchResponse *_Nullable response , TTResponseError *_Nullable error ))completionHandler
Parameters
query |
The object which contains data necessary to execute search action |
---|---|
completionHandler |
completionHandler CompletionHandler that informs the subscriber when a search result is available. It contains a TTAlongRouteSearchResponse object or error if fails. |
Discussion
Performs along route search action based on provided query object and returns the result with usage of completion handler callback implementation.
Declared In
TTAlongRouteSearch.h
– searchWithQuery:error:
Search with sync result
- (TTAlongRouteSearchResponse *_Nonnull)searchWithQuery:(TTAlongRouteSearchQuery *_Nonnull)query error:(TTResponseError *_Nonnull)error
Parameters
query |
Object containing the data needed to perform a search. |
---|---|
error |
TTResponseError |
Return Value
return TTAlongRouteSearchResponse object.
Discussion
Search with sync result
Declared In
TTAlongRouteSearch.h
– cancel
Cancels the current along route search request.
- (void)cancel
Discussion
Cancels the current along route search request.
Declared In
TTAlongRouteSearch.h