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...
|
|
Represents an interface for a search request.
◆ 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:boundary:
- (nonnull instancetype) initWithQuery: |
|
(nonnull NSString *) |
query |
location: |
|
(nullable SYGeoCoordinate *) |
coordinate |
boundary: |
|
(nonnull SYGeoBoundingBox *) |
box |
|
|
| |
Creates a geocoder request that resolves a free text query.
- Parameters
-
query | search query |
coordinate | position to start search from |
box | bounding box for filtering search results |
◆ 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].
◆ 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.
◆ 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.
The documentation for this class was generated from the following file: