Example #1
0
 public static function findByPoint(Point $point, $kind, Point $radius = null, array $params = [], $results = 10)
 {
     if ($radius) {
         $params['spn'] = $radius->toString();
     }
     return static::getData($point->toString(), array_merge(compact('kind', 'results'), $params));
 }
Example #2
0
 /**
  * @return string
  */
 public function getLongitude()
 {
     return $this->point->getLongitude();
 }