You are here

protected function GeoRSS::parseCircles in geoPHP 8

Same name and namespace in other branches
  1. 7 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 158

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;
}