public function testGetType() { $point = new Point(10, 10); $result = $point->getType(); $this->assertEquals('Point', $result); }
/** * @param \CrEOF\Spatial\PHP\Types\Geography\Point $location * @return array */ public function extract($location) { if ($location) { return ['latitude' => $location->getLatitude(), 'longitude' => $location->getLongitude()]; } }