Google Cloud Discovery Engine V1 Client - Class PreciseLocation (1.17.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class PreciseLocation.

Precise location info with multiple representation options.

Generated from protobuf message google.cloud.discoveryengine.v1.UserInfo.PreciseLocation

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ UserInfo

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ point Google\Type\LatLng

Optional. Location represented by a latitude/longitude point.

↳ address string

Location represented by a natural language address. Will later be geocoded and converted to either a point or a polygon.

getPoint

Optional. Location represented by a latitude/longitude point.

Returns
Type Description
Google\Type\LatLng|null

hasPoint

setPoint

Optional. Location represented by a latitude/longitude point.

Parameter
Name Description
var Google\Type\LatLng
Returns
Type Description
$this

getAddress

Location represented by a natural language address. Will later be geocoded and converted to either a point or a polygon.

Returns
Type Description
string

hasAddress

setAddress

Location represented by a natural language address. Will later be geocoded and converted to either a point or a polygon.

Parameter
Name Description
var string
Returns
Type Description
$this

getLocation

Returns
Type Description
string