private function locationString() { $json = array(); $contact_info = \contact\Factory\ContactInfo::load(); $physical_address = $contact_info->getPhysicalAddress(); try { $json['address'] = Factory::getGoogleSearchString($physical_address); } catch (\Exception $e) { $json['error'] = $e->getMessage(); } $response = new \View\JsonView($json); return $response; }