YMKSuggestOptions
Важно
This feature is available in the Full MapKit SDK version
|
@interface YMKSuggestOptions : NSObject |
Struct to fine-tune suggest request.
Summary
Class methods
|
+ (nonnull YMKSuggestOptions *)suggestOptionsWithSuggestTypes:( YMKSuggestType)suggestTypes |
Instance methods
|
- (nonnull YMKSuggestOptions *)init; |
Properties
|
@property (nonatomic, assign, unsafe_unretained, readwrite) |
|
@property (nonatomic, strong, readwrite, nullable) YMKPoint *userPosition; |
|
@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL suggestWords; |
|
@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL strictBounds; |
Class methods
suggestOptionsWithSuggestTypes:userPosition:suggestWords:strictBounds:
|
+ (nonnull YMKSuggestOptions *)suggestOptionsWithSuggestTypes:( YMKSuggestType)suggestTypes |
Instance methods
init
|
- (nonnull YMKSuggestOptions *)init; |
Properties
suggestTypes
|
@property (nonatomic, assign, unsafe_unretained, readwrite) |
The suggest type can be one of YMKSuggestType values or their bitwise 'OR' combination. If suggestType is not initialized, it means to use server-defined types.
userPosition
|
@property (nonatomic, strong, readwrite, nullable) YMKPoint *userPosition; |
The server uses the user position to calculate the distance from the user to suggest results.
Optional field, can be nil.
suggestWords
|
@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL suggestWords; |
Enable word-by-word suggestion items.
strictBounds
|
@property (nonatomic, assign, unsafe_unretained, readwrite) BOOL strictBounds; |
Strictly limit the output and keep only objects that fall within the window. The window is advisory in nature and doesn't impose strict restrictions on search results, helping to select the most relevant hints.