This commit is contained in:
Krivchikov Dmitry 2016-05-30 00:06:16 +03:00
parent d3d638831f
commit d599374442
1 changed files with 2 additions and 1 deletions

View File

@ -17,11 +17,12 @@ class Kml
foreach ($this->get($this->kml, 'Placemark') as $placemark) {
if ($this->has($placemark, 'Point')) {
$latlngs = $this->getCoords($placemark);
$this->waypoints[] = array(
'name' => trim($this->getValue($placemark, 'name')),
'description' => trim($this->getValue($placemark, 'description')),
'when' => date('c', strtotime($this->getValue($placemark, 'when'))),
'latlng' => $this->getCoords($placemark)[0],
'latlng' => $latlngs[0],
);
}