LocationContext

class LocationContext


The location context is used to generate location-based search suggestions.

Summary

Nested types

The area restriction.

Geo type preferences to apply when generating search suggestions.

Geographical restrictions to apply when generating search suggestions.

A latitude/longitude pair.

Time restrictions to apply when generating search suggestions.

A time segment.

Public constructors

LocationContext(
    geographicalRestrictions: LocationContext.GeographicalRestrictions!
)
LocationContext(
    geographicalRestrictions: LocationContext.GeographicalRestrictions!,
    timeRestrictions: LocationContext.TimeRestrictions!,
    geoTypeRestrictions: LocationContext.GeoTypeRestrictions!
)

Public functions

LocationContext!

Sets the geo type restrictions.

LocationContext!

Sets the geographical restrictions.

LocationContext!

Sets the time restrictions.

Public constructors

LocationContext

LocationContext(
    geographicalRestrictions: LocationContext.GeographicalRestrictions!
)

LocationContext

LocationContext(
    geographicalRestrictions: LocationContext.GeographicalRestrictions!,
    timeRestrictions: LocationContext.TimeRestrictions!,
    geoTypeRestrictions: LocationContext.GeoTypeRestrictions!
)

Public functions

setGeoTypeRestrictions

@CanIgnoreReturnValue
fun setGeoTypeRestrictions(
    geoTypeRestrictions: LocationContext.GeoTypeRestrictions!
): LocationContext!

Sets the geo type restrictions.

Parameters
geoTypeRestrictions: LocationContext.GeoTypeRestrictions!

the geo type restrictions.

Returns
LocationContext!

the location context.

setGeographicalRestrictions

@CanIgnoreReturnValue
fun setGeographicalRestrictions(
    geographicalRestrictions: LocationContext.GeographicalRestrictions!
): LocationContext!

Sets the geographical restrictions.

Parameters
geographicalRestrictions: LocationContext.GeographicalRestrictions!

the geographical restrictions.

Returns
LocationContext!

the location context.

setTimeRestrictions

@CanIgnoreReturnValue
fun setTimeRestrictions(timeRestrictions: LocationContext.TimeRestrictions!): LocationContext!

Sets the time restrictions.

Parameters
timeRestrictions: LocationContext.TimeRestrictions!

the time restrictions.

Returns
LocationContext!

the location context.