Document->Folder->Placemark as $placemark) { $markers[] = array( "latitude"=>$placemark->LookAt->latitude, "longitude"=>$placemark->LookAt->longitude, "name"=>$placemark->name, "description"=>$placemark->description, "id"=>$counter); $counter++; }