/** @return lat_lng_bound */ public function get_grid_cell() { /** @var lat_lng_bound $cell */ foreach (OS::cells() as $cell) { if ($cell->contains($this)) { return $cell; } } $bound = new \stdClass(); $bound->code = 'N/A'; return $bound; }