protected function GeoRSS::parseCircles in geoPHP 7
Same name and namespace in other branches
- 8 geoPHP/lib/adapters/GeoRSS.class.php \GeoRSS::parseCircles()
1 call to GeoRSS::parseCircles()
- GeoRSS::geomFromXML in geoPHP/
lib/ adapters/ GeoRSS.class.php
File
- geoPHP/
lib/ adapters/ GeoRSS.class.php, line 170
Class
- GeoRSS
- PHP Geometry/GeoRSS encoder/decoder
Code
protected function parseCircles() {
$points = array();
$circle_elements = $this->xmlobj
->getElementsByTagName('circle');
foreach ($circle_elements as $circle) {
$parts = explode(' ', trim($circle->firstChild->nodeValue));
$points[] = new Point($parts[1], $parts[0]);
}
return $points;
}