LocationContext.GeoTypeRestrictions

class LocationContext.GeoTypeRestrictions


Geo type preferences to apply when generating search suggestions. The supported types are:

  • Food and Drink Geo types - 'restaurant', 'cafe', 'bar'
  • Leisure Geo types - 'park', 'zoo', 'museum', 'attraction'
  • Services Geo types - 'atm', 'bank', 'hair_salon', 'real_estate_agency'
  • Transportation Geo types - 'bicycle_sharing_location', 'car_rental_agency'
  • Shopping Geo types - 'shopping_center', 'grocery_store'
  • Lodging Geo types - 'hotel'

Summary

Public constructors

Public functions

LocationContext.GeoTypeRestrictions!

Sets the geo types.

Public constructors

GeoTypeRestrictions

GeoTypeRestrictions(geoTypes: Array<String!>!)

Public functions

setGeoTypes

@CanIgnoreReturnValue
fun setGeoTypes(geoTypes: (Mutable)List<String!>!): LocationContext.GeoTypeRestrictions!

Sets the geo types.

Parameters
geoTypes: (Mutable)List<String!>!

the geo types.

Returns
LocationContext.GeoTypeRestrictions!

the geo type restrictions.