Represents an interface for a search request.
More...
#import <SYSearch.h>
|
NSUInteger | maxResultsCount |
| The maximum number of items in the response. Default value is 10. More...
|
|
NSString * | preferredLanguage |
| NSString representing the preferred language for request responses. Default value is [[NSLocale preferredLanguages] objectAtIndex:0]. More...
|
|
SYSearchResultTypeFilter | resultTypeFilter |
| Only results of types included in filter will be returned in completion block. Default value is SYSearchResultFilterAll, means searching all result types. More...
|
|
NSArray< NSString * > * | countryFilter |
| Array of country ISO codes. If set, only results from specified countries will be returned. Default value is nil, means searching in all countries. More...
|
|
SYGeoBoundingBox * | box [implementation] |
|
SYGeoCoordinate * | coordinate [implementation] |
|
NSString * | query [implementation] |
|
Represents an interface for a search request.
◆ fillSdkRequest:isoVector:()
- (void) fillSdkRequest: |
|
(sysearch_search_request_t &) |
sdkRequest |
isoVector: |
|
(std::vector< const char * > &) |
isoVector |
|
|
| |
|
implementation |
◆ initWithQuery:location:()
- (nonnull instancetype) initWithQuery: |
|
(nonnull NSString *) |
query |
location: |
|
(nullable SYGeoCoordinate *) |
coordinate |
|
|
| |
Creates a geocoder request that resolves a free text query.
- Parameters
-
query | search query |
coordinate | position to start search from |
◆ initWithQuery:location:filter:()
- (nonnull instancetype) initWithQuery: |
|
(nonnull NSString *) |
query |
location: |
|
(nullable SYGeoCoordinate *) |
coordinate |
filter: |
|
(nonnull SYGeoBoundingBox *) |
box |
|
|
| |
Creates a geocoder request that resolves a free text query.
- Parameters
-
query | search query |
coordinate | position to start search from |
box | geo bondary for filtering search results |
◆ box
|
readwritenonatomicstrongimplementation |
◆ coordinate
|
readwritenonatomicstrongimplementation |
◆ countryFilter
- (NSArray<NSString*>*) countryFilter |
|
readwritenonatomicstrong |
Array of country ISO codes. If set, only results from specified countries will be returned. Default value is nil, means searching in all countries.
◆ maxResultsCount
- (NSUInteger) maxResultsCount |
|
readwritenonatomicassign |
The maximum number of items in the response. Default value is 10.
◆ preferredLanguage
- (NSString*) preferredLanguage |
|
readwritenonatomicstrong |
NSString representing the preferred language for request responses. Default value is [[NSLocale preferredLanguages] objectAtIndex:0].
◆ query
|
readwritenonatomiccopyimplementation |
◆ resultTypeFilter
- (SYSearchResultTypeFilter) resultTypeFilter |
|
readwritenonatomicassign |
Only results of types included in filter will be returned in completion block. Default value is SYSearchResultFilterAll, means searching all result types.
The documentation for this class was generated from the following file: