Google\Cloud\Datastore\GeoPoint::__construct PHP 메소드

__construct() 공개 메소드

Ints will be converted to floats. Values not passing the is_numeric() check will result in an exception.
public __construct ( float | integer $latitude, float | integer $longitude )
$latitude float | integer
$longitude float | integer
    public function __construct($latitude, $longitude)
    {
        $this->setLatitude($latitude);
        $this->setLongitude($longitude);
    }