ParseGeoPoint

Implements \Parse\Internal\Encodable

Class ParseGeoPoint - Representation of a Parse GeoPoint object.

author

Fosco Marotto fjm@fb.com

package

Parse

Methods

Create a Parse GeoPoint object.

__construct(float $lat, float $lon) 

Arguments

$lat

float

Latitude.

$lon

float

Longitude.

Encode to associative array representation.

_encode() : array

Response

array

Returns the Latitude value for this GeoPoint.

getLatitude() : float

Response

float

Returns the Longitude value for this GeoPoint.

getLongitude() : float

Response

float

Set the Latitude value for this GeoPoint.

setLatitude( $lat) 
Throws
\Parse\ParseException

Arguments

$lat

Set the Longitude value for this GeoPoint.

setLongitude( $lon) 
Throws
\Parse\ParseException

Arguments

$lon

Properties

The latitude.

latitude : float
var

Type(s)

float

The longitude.

longitude : float
var

Type(s)

float