# Google Cloud Talent Solution V4 Client - Class Location (2.3.0)

2.3.0 (latest) 2.2.1 2.1.3 2.0.2 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Talent Solution V4 Client class Location.

A resource that represents a location with full geographic information.

Generated from protobuf message `google.cloud.talent.v4.Location`

## Namespace

Google \\ Cloud \\ Talent \\ V4

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ location_type` | `int` The type of a location, which corresponds to the address lines field of [google.type.PostalAddress](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.PostalAddress.html). For example, "Downtown, Atlanta, GA, USA" has a type of [LocationType.NEIGHBORHOOD](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location.LocationType#_Google_Cloud_Talent_V4_Location_LocationType__NEIGHBORHOOD), and "Kansas City, KS, USA" has a type of [LocationType.LOCALITY](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location.LocationType#_Google_Cloud_Talent_V4_Location_LocationType__LOCALITY). |
| `↳ postal_address` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.PostalAddress.html` Postal address of the location that includes human readable information, such as postal delivery and payments addresses. Given a postal address, a postal service can deliver items to a premises, P.O. Box, or other delivery location. |
| `↳ lat_lng` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.LatLng.html` An object representing a latitude/longitude pair. |
| `↳ radius_miles` | `float` Radius in miles of the job location. This value is derived from the location bounding box in which a circle with the specified radius centered from [google.type.LatLng](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.LatLng.html) covers the area associated with the job location. For example, currently, "Mountain View, CA, USA" has a radius of 6.17 miles. |

### getLocationType

The type of a location, which corresponds to the address lines field of
[google.type.PostalAddress](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.PostalAddress.html). For example,
"Downtown, Atlanta, GA, USA" has a type of
[LocationType.NEIGHBORHOOD](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location.LocationType#_Google_Cloud_Talent_V4_Location_LocationType__NEIGHBORHOOD),
and "Kansas City, KS, USA" has a type of
[LocationType.LOCALITY](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location.LocationType#_Google_Cloud_Talent_V4_Location_LocationType__LOCALITY).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [LocationType](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location.LocationType). |

### setLocationType

The type of a location, which corresponds to the address lines field of
[google.type.PostalAddress](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.PostalAddress.html). For example,
"Downtown, Atlanta, GA, USA" has a type of
[LocationType.NEIGHBORHOOD](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location.LocationType#_Google_Cloud_Talent_V4_Location_LocationType__NEIGHBORHOOD),
and "Kansas City, KS, USA" has a type of
[LocationType.LOCALITY](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location.LocationType#_Google_Cloud_Talent_V4_Location_LocationType__LOCALITY).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [LocationType](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Location.LocationType). |

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

### getPostalAddress

Postal address of the location that includes human readable information,
such as postal delivery and payments addresses. Given a postal address,
a postal service can deliver items to a premises, P.O. Box, or other
delivery location.

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

### hasPostalAddress

### clearPostalAddress

### setPostalAddress

Postal address of the location that includes human readable information,
such as postal delivery and payments addresses. Given a postal address,
a postal service can deliver items to a premises, P.O. Box, or other
delivery location.

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

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

### getLatLng

An object representing a latitude/longitude pair.

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

### hasLatLng

### clearLatLng

### setLatLng

An object representing a latitude/longitude pair.

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

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

### getRadiusMiles

Radius in miles of the job location. This value is derived from the
location bounding box in which a circle with the specified radius
centered from [google.type.LatLng](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.LatLng.html) covers the area
associated with the job location. For example, currently, "Mountain View,
CA, USA" has a radius of 6.17 miles.

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

### setRadiusMiles

Radius in miles of the job location. This value is derived from the
location bounding box in which a circle with the specified radius
centered from [google.type.LatLng](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.LatLng.html) covers the area
associated with the job location. For example, currently, "Mountain View,
CA, USA" has a radius of 6.17 miles.

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

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