+ $coord = "";
+ $location = "";
+ if (isset($item->location)) {
+ if (isset($item->location->address->formatted))
+ $location = $item->location->address->formatted;
+
+ if (isset($item->location->displayName))
+ $location = $item->location->displayName;
+
+ if (isset($item->location->position->latitude) AND
+ isset($item->location->position->longitude))
+ $coord = $item->location->position->latitude." ".$item->location->position->longitude;
+
+ } elseif (isset($item->address))