BrandSearchOptions

class BrandSearchOptions @JvmOverloads constructor(val proximity: Point? = null, val boundingBox: BoundingBox? = null, val countries: List<IsoCountryCode>? = null, val language: IsoLanguageCode? = defaultLocaleLanguage(), val limit: Int? = null, val showClosedPOIs: Boolean? = null, val unsafeParameters: Map<String, String>? = null) : Parcelable

Search options, used for brand search.

See also

Constructors

Link copied to clipboard
fun BrandSearchOptions(proximity: Point? = null, boundingBox: BoundingBox? = null, countries: List<IsoCountryCode>? = null, language: IsoLanguageCode? = defaultLocaleLanguage(), limit: Int? = null, showClosedPOIs: Boolean? = null, unsafeParameters: Map<String, String>? = null)

Types

Link copied to clipboard
class Builder

Builder for comfortable creation of BrandSearchOptions instance.

Functions

Link copied to clipboard
fun copy(proximity: Point? = this.proximity, boundingBox: BoundingBox? = this.boundingBox, countries: List<IsoCountryCode>? = this.countries, language: IsoLanguageCode? = this.language, limit: Int? = this.limit, showClosedPOIs: Boolean? = this.showClosedPOIs, unsafeParameters: Map<String, String>? = this.unsafeParameters): BrandSearchOptions

Creates new BrandSearchOptions from current instance.

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
val boundingBox: BoundingBox? = null

Limit results to only those contained within the supplied bounding box. The bounding box cannot cross the 180th meridian.

Link copied to clipboard
val countries: List<IsoCountryCode>? = null

Limit results to one or more countries.

Link copied to clipboard
val language: IsoLanguageCode?

Specify the user’s language. This parameter controls the language of the text supplied in responses, and also affects result scoring, with results matching the user’s query in the requested language being preferred over results that match in another language. For example, an autocomplete query for things that start with Frank might return Frankfurt as the first result with an English (en) language parameter, but Frankreich (“France”) with a German (de) language parameter. If language is not set explicitly, then language from default system locale will be used.

Link copied to clipboard
val limit: Int? = null

Specify the maximum number of results to return. The maximum number of search results is determined by server

Link copied to clipboard
val proximity: Point? = null

Bias the response to favor results that are closer to this location, provided as Point.

Link copied to clipboard
val showClosedPOIs: Boolean? = null

Determines whether to return “closed” POIs.

Link copied to clipboard

Non-verified query parameters, that will be added to the server API request.