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 passing them to the given hasher.
hasher
Hasher
Hasher to use when combining the components of this instance.
public static func fromQueryText(
queryText: String
) -> SuggestQueryBuilder
Starts building a hint query for a given text and area of interest.
public static func fromQuery(
query: SuggestQuery
) -> SuggestQueryBuilder
Starts building a hint query based on the #query to change part of the parameters.
The original #query remains unchanged.
public func setSpatialRestriction(
spatialRestriction: [GeoPoint]?
) -> SuggestQueryBuilder
Sets the search area limitation in the polygon form. The first and the last points of the polygon do not have to coincide.
By default, no limitation is set.
public func setAreaOfInterest(
rect: GeoRect?
) -> SuggestQueryBuilder
Sets 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
Specifies the object types allowed as a result of the request.
By default, all types except Route are allowed.
public func setSuggestorType(
suggestorType: SuggestorType
) -> SuggestQueryBuilder
Sets the suggester type.
By default, #SuggestorType::General
public func setLimit(
limit: Int32
) -> SuggestQueryBuilder
Sets the desired number of hints. Values from the range [1; 50] are allowed.
Default value is 10.