Parse PHP SDK API Reference

ParseGeoPoint
in package
implements Encodable

Class ParseGeoPoint - Representation of a Parse GeoPoint object.

Tags
author

Fosco Marotto [email protected]

Interfaces, Classes and Traits

Encodable
Class Encodable - Interface for Parse Classes which provide an encode method.

Table of Contents

$latitude  : float
The latitude.
$longitude  : float
The longitude.
__construct()  : mixed
Create a Parse GeoPoint object.
_encode()  : array<string|int, mixed>
Encode to associative array representation.
getLatitude()  : float
Returns the Latitude value for this GeoPoint.
getLongitude()  : float
Returns the Longitude value for this GeoPoint.
setLatitude()  : mixed
Set the Latitude value for this GeoPoint.
setLongitude()  : mixed
Set the Longitude value for this GeoPoint.

Properties

Methods

__construct()

Create a Parse GeoPoint object.

public __construct(float $lat, float $lon) : mixed
Parameters
$lat : float

Latitude.

$lon : float

Longitude.

Return values
mixed

_encode()

Encode to associative array representation.

public _encode() : array<string|int, mixed>
Return values
array<string|int, mixed>

getLatitude()

Returns the Latitude value for this GeoPoint.

public getLatitude() : float
Return values
float

getLongitude()

Returns the Longitude value for this GeoPoint.

public getLongitude() : float
Return values
float

setLatitude()

Set the Latitude value for this GeoPoint.

public setLatitude(float $lat) : mixed
Parameters
$lat : float
Tags
throws
ParseException
Return values
mixed

setLongitude()

Set the Longitude value for this GeoPoint.

public setLongitude(float $lon) : mixed
Parameters
$lon : float
Tags
throws
ParseException
Return values
mixed

Search results