Warning
This feature is available in the Full MapKit SDK version
YMKSuggestOptions
@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; |
Class methods
suggestOptionsWithSuggestTypes:userPosition:suggestWords:
+ (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.