SuggestQueryBuilder
Query builder for suggester.
ru.dgis.sdk.NativeObject
fun setSpatialRestriction(spatialRestriction: List?<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 match.
No limit by default.
fun setAreaOfInterest(rect: GeoRect?): SuggestQueryBuilder
Set a rectangular region of interest in geographic coordinates. A typical value is visible_rect from ICamera - the enclosing rectangle of the viewport.
fun setAllowedResultTypes(allowedResultTypes: List<SuggestedType>): SuggestQueryBuilder
Set the object types allowed in the query result.
The default set includes all types except Route.
fun setSuggestorType(suggestorType: SuggestorType): SuggestQueryBuilder
Set suggester type.
#SuggestorType by default::General
fun setLimit(limit: Int): SuggestQueryBuilder
Set the desired number of suggestions. Valid values are from the range 1;50
The default one is 10.
@JvmStatic
fun fromQueryText(queryText: String): SuggestQueryBuilder
Start building a suggestion query for the given text and the area of interest.
@JvmStatic
fun fromQuery(query: SuggestQuery): SuggestQueryBuilder
Start building a suggestion query based on #query to change some of the parameters.
The original #query remains unchanged.