Ver originalforeach($result->results as $r) { echo $r->geometry->location->lat; echo "<br />"; echo $r->geometry->location->lng; }