SuggestQueryBuilder
Build a query to the hint.
Hashable
public static func == (lhs: SuggestQueryBuilder, rhs: SuggestQueryBuilder) -> Bool
Returns a Boolean value indicating whether two values are equal.
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
hasher
Hasher
The hasher to use when combining the components of this instance.
public static func fromQueryText(
queryText: String
) -> SuggestQueryBuilder
Start constructing a hint query for the given text and area of interest.
public static func fromQuery(
query: SuggestQuery
) -> SuggestQueryBuilder
Start building a hint query based on the #query to change a portion of the parameters.
public func setSpatialRestriction(
spatialRestriction: [GeoPoint]?
) -> SuggestQueryBuilder
Set the search area limit in the form of a polygon. The first and the last points of the polygon must not coincide.
public func setAreaOfInterest(
rect: GeoRect?
) -> SuggestQueryBuilder
Set the rectangular area of interest in geographic coordinates. A typical value is visible_rect from ICamera - the enclosing rectangle of the viewport.
public func setAllowedResultTypes(
allowedResultTypes: [SuggestedType]
) -> SuggestQueryBuilder
Specify the types of objects allowed by the query.
public func setSuggestorType(
suggestorType: SuggestorType
) -> SuggestQueryBuilder
Set hint type.
public func setLimit(
limit: Int32
) -> SuggestQueryBuilder
Set the desired number of cues. Valid values from the range [1; 50]