# Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::GeolocationConstraint (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.2 2.5.0 2.4.0 2.3.1 2.2.0 2.1.1 2.0.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.2 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::SearchResponse::NaturalLanguageQueryUnderstandingInfo::StructuredExtractedFilter::GeolocationConstraint.

Constraint of a geolocation field.
Name of the geolocation field as defined in the schema.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #address

    def address() -> ::String

**Returns**

- (::String) --- The reference address that was inferred from the input query. The proximity of the reference address to the geolocation field will be used to filter the results.

### #address=

    def address=(value) -> ::String

**Parameter**

- **value** (::String) --- The reference address that was inferred from the input query. The proximity of the reference address to the geolocation field will be used to filter the results.
**Returns**

- (::String) --- The reference address that was inferred from the input query. The proximity of the reference address to the geolocation field will be used to filter the results.

### #field_name

    def field_name() -> ::String

**Returns**

- (::String) --- The name of the geolocation field as defined in the schema.

### #field_name=

    def field_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The name of the geolocation field as defined in the schema.
**Returns**

- (::String) --- The name of the geolocation field as defined in the schema.

### #latitude

    def latitude() -> ::Float

**Returns**

- (::Float) --- The latitude of the geolocation inferred from the input query.

### #latitude=

    def latitude=(value) -> ::Float

**Parameter**

- **value** (::Float) --- The latitude of the geolocation inferred from the input query.
**Returns**

- (::Float) --- The latitude of the geolocation inferred from the input query.

### #longitude

    def longitude() -> ::Float

**Returns**

- (::Float) --- The longitude of the geolocation inferred from the input query.

### #longitude=

    def longitude=(value) -> ::Float

**Parameter**

- **value** (::Float) --- The longitude of the geolocation inferred from the input query.
**Returns**

- (::Float) --- The longitude of the geolocation inferred from the input query.

### #radius_in_meters

    def radius_in_meters() -> ::Float

**Returns**

- (::Float) --- The radius in meters around the address. The record is returned if the location of the geolocation field is within the radius.

### #radius_in_meters=

    def radius_in_meters=(value) -> ::Float

**Parameter**

- **value** (::Float) --- The radius in meters around the address. The record is returned if the location of the geolocation field is within the radius.
**Returns**

- (::Float) --- The radius in meters around the address. The record is returned if the location of the geolocation field is within the radius.