Google Cloud Talent Solution V4beta1 Client - Class Location (1.1.1)

Reference documentation and code samples for the Google Cloud Talent Solution V4beta1 Client class Location.

A resource that represents a location with full geographic information.

Generated from protobuf message google.cloud.talent.v4beta1.Location

Namespace

Google \ Cloud \ Talent \ V4beta1

Methods

__construct

Constructor.

Parameters
NameDescription
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. For example, "Downtown, Atlanta, GA, USA" has a type of LocationType.NEIGHBORHOOD, and "Kansas City, KS, USA" has a type of LocationType.LOCALITY.

↳ postal_address Google\Type\PostalAddress

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 Google\Type\LatLng

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 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. For example, "Downtown, Atlanta, GA, USA" has a type of LocationType.NEIGHBORHOOD, and "Kansas City, KS, USA" has a type of LocationType.LOCALITY.

Returns
TypeDescription
int

setLocationType

The type of a location, which corresponds to the address lines field of google.type.PostalAddress. For example, "Downtown, Atlanta, GA, USA" has a type of LocationType.NEIGHBORHOOD, and "Kansas City, KS, USA" has a type of LocationType.LOCALITY.

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
Google\Type\PostalAddress|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
NameDescription
var Google\Type\PostalAddress
Returns
TypeDescription
$this

getLatLng

An object representing a latitude/longitude pair.

Returns
TypeDescription
Google\Type\LatLng|null

hasLatLng

clearLatLng

setLatLng

An object representing a latitude/longitude pair.

Parameter
NameDescription
var Google\Type\LatLng
Returns
TypeDescription
$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 covers the area associated with the job location. For example, currently, "Mountain View, CA, USA" has a radius of 6.17 miles.

Returns
TypeDescription
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 covers the area associated with the job location. For example, currently, "Mountain View, CA, USA" has a radius of 6.17 miles.

Parameter
NameDescription
var float
Returns
TypeDescription
$this