SuggestQueryBuilder
Query builder for suggester.
Extends:
ru.dgis.sdk.NativeObject
Methods
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
Parameters
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.
Parameters
fun setAllowedResultTypes(allowedResultTypes: List<SuggestedType>): SuggestQueryBuilder
Set the object types allowed in the query result.
By default is all except Route
Parameters
fun setSuggestorType(suggestorType: SuggestorType): SuggestQueryBuilder
Set the type of suggester.
The default value is #SuggestorType::General
Parameters
fun setLimit(limit: Int): SuggestQueryBuilder
Set the desired number of suggestions. Valid values are from the range 1;50
default 10
Parameters
@JvmStatic
fun fromQueryText(queryText: String): SuggestQueryBuilder
Start building a suggestion query for the given text and the area of interest.
Parameters
@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.
Parameters