SuggestQueryBuilder
Builder of queries to the suggestor.
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 building a hint query for a given text and area of interest.
public static func fromQuery(
query: SuggestQuery
) -> SuggestQueryBuilder
Start building a hint query based on the #query to change part 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 do not have to coincide.
public func setAreaOfInterest(
rect: GeoRect?
) -> SuggestQueryBuilder
Set the rectangular region of interest in geographic coordinates. A typical value is visible_rect from ICamera - the enclosing rectangle of the view area.
public func setAllowedResultTypes(
allowedResultTypes: [SuggestedType]
) -> SuggestQueryBuilder
Set the object types allowed as a result of the query.
public func setSuggestorType(
suggestorType: SuggestorType
) -> SuggestQueryBuilder
Set the suggestor type.
public func setLimit(
limit: Int32
) -> SuggestQueryBuilder
Set the desired number of hints. Values from the range [1; 50] are allowed.