# Google Shopping Merchant Accounts V1 Client - Class RadiusArea (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.0 1.0.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.3 0.2.0 0.1.0 Reference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class RadiusArea.

A radius area that defines the region area.

Generated from protobuf message `google.shopping.merchant.accounts.v1.Region.RadiusArea`

## Namespace

Google \\ Shopping \\ Merchant \\ Accounts \\ V1 \\ Region

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ region_code` | `string` Required. [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) or the country the radius area applies to. |
| `↳ lat_lng` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.LatLng.html` Required. The center of the radius area. It represents a latitude/longitude pair in decimal degrees format. |
| `↳ radius` | `float` Required. The radius distance of the area. |
| `↳ radius_units` | `int` Optional. The unit of the radius. |

### getRegionCode

Required. [CLDR territory
code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
or the country the radius area applies to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setRegionCode

Required. [CLDR territory
code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
or the country the radius area applies to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLatLng

Required. The center of the radius area. It represents a
latitude/longitude pair in decimal degrees format.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.LatLng.html|null` |   |

### hasLatLng

### clearLatLng

### setLatLng

Required. The center of the radius area. It represents a
latitude/longitude pair in decimal degrees format.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.LatLng.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRadius

Required. The radius distance of the area.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setRadius

Required. The radius distance of the area.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRadiusUnits

Optional. The unit of the radius.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [RadiusUnits](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1.Region.RadiusArea.RadiusUnits). |

### setRadiusUnits

Optional. The unit of the radius.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [RadiusUnits](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1.Region.RadiusArea.RadiusUnits). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |