/** * addressLocality * The locality (city, town, etc). For example, Mountain View. * * @access public * @param object $obj_with_address * @return string */ public static function addressLocality($obj_with_address = NULL) { return $obj_with_address->city() !== NULL && $obj_with_address->city() !== '' ? '<span itemprop="addressLocality">' . $obj_with_address->city() . '</span>' : ''; }
/** * Set the IP Address to be used * * @param string $ip IPv4 Address * * @return $this */ public function set($ip) { $this->ip = $ip; $this->reader = $this->geo->city($this->ip); return $this; }