Class GeoPoint
GeoPoint type representation
It represents a geographic point, and supports computing geo
distance from point to point. It can also be used in Query to
build proximity-based queries.
Methods summary
public
|
#
__construct( number $latitude = 0.0, number $longitude = 0.0 )
Initialize a geo point
Parameters
Throws
InvalidArgumentException
|
public
number
|
|
public
number
|
|
public
number
|
#
radiansTo( LeanCloud\GeoPoint $point )
Compute distance (in radians) to a geo point
Compute distance (in radians) to a geo point
Parameters
Returns
number
|
public
number
|
#
kilometersTo( LeanCloud\GeoPoint $point )
Compute distance (in kilometers) to other geo point
Compute distance (in kilometers) to other geo point
Parameters
Returns
number
|
public
number
|
#
milesTo( LeanCloud\GeoPoint $point )
Compute distance (in miles) to other geo point
Compute distance (in miles) to other geo point
Parameters
Returns
number
|
public
|
|