Google\Cloud\Datastore\GeoPoint::point PHP Method

point() public method

Example: $point = $point->point();
public point ( ) : array
return array [LatLng](https://cloud.google.com/datastore/reference/rest/Shared.Types/LatLng)
    public function point()
    {
        return ['latitude' => $this->latitude, 'longitude' => $this->longitude];
    }

Usage Example

 public function testPoint()
 {
     $point = new GeoPoint(1.1, 2.2);
     $this->assertEquals($point->point(), ['latitude' => 1.1, 'longitude' => 2.2]);
 }