LatLng
extends Message
in package
Generated from protobuf message <code>couchbase.search.v1.LatLng</code>
Table of Contents
- $latitude : mixed
- Generated from protobuf field <code>double latitude = 1;</code>
- $longitude : mixed
- Generated from protobuf field <code>double longitude = 2;</code>
- __construct() : mixed
- Constructor.
- getLatitude() : float
- Generated from protobuf field <code>double latitude = 1;</code>
- getLongitude() : float
- Generated from protobuf field <code>double longitude = 2;</code>
- setLatitude() : $this
- Generated from protobuf field <code>double latitude = 1;</code>
- setLongitude() : $this
- Generated from protobuf field <code>double longitude = 2;</code>
Properties
$latitude
Generated from protobuf field <code>double latitude = 1;</code>
protected
mixed
$latitude
= 0.0
$longitude
Generated from protobuf field <code>double longitude = 2;</code>
protected
mixed
$longitude
= 0.0
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
- $data : array<string|int, mixed> = NULL
-
{ Optional. Data for populating the Message object.
@type float $latitude @type float $longitude
}
Return values
mixed —getLatitude()
Generated from protobuf field <code>double latitude = 1;</code>
public
getLatitude() : float
Return values
float —getLongitude()
Generated from protobuf field <code>double longitude = 2;</code>
public
getLongitude() : float
Return values
float —setLatitude()
Generated from protobuf field <code>double latitude = 1;</code>
public
setLatitude(float $var) : $this
Parameters
- $var : float
Return values
$this —setLongitude()
Generated from protobuf field <code>double longitude = 2;</code>
public
setLongitude(float $var) : $this
Parameters
- $var : float