Warning
This feature is available in the Full MapKit SDK version
MMKSuggestOptions
class MMKSuggestOptions : NSObject |
Struct to fine-tune suggest request.
Summary
Class methods
init(suggestTypes: MMKSuggestType, |
Instance methods
init() |
Properties
var suggestTypes: MMKSuggestType { get set } |
var userPosition: MMKPoint? { get set } |
var suggestWords: Bool { get set } |
var strictBounds: Bool { get set } |
Class methods
init(suggestTypes:userPosition:suggestWords:strictBounds:)
init(suggestTypes: MMKSuggestType, |
Instance methods
init()
init() |
Properties
suggestTypes
var suggestTypes: MMKSuggestType { get set } |
The suggest type can be one of MMKSuggestType values or their bitwise 'OR' combination. If suggestType is not initialized, it means to use server-defined types.
userPosition
var userPosition: MMKPoint? { get set } |
The server uses the user position to calculate the distance from the user to suggest results.
Optional field, can be nil.
suggestWords
var suggestWords: Bool { get set } |
Enable word-by-word suggestion items.
strictBounds
var strictBounds: Bool { get set } |
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.