Paradox/toolbox/Finder.php
public function convertToPods($type, array $result, array $geoInfo = null)
    {
        $converted = $this->_toolbox->getPodManager()->convertToPods($type, $result);

        foreach ($converted as $model) {

            if ($geoInfo) {
                $model->getPod()->setDistanceInfo($geoInfo['latitude'], $geoInfo['longitude'], $geoInfo['podId']);
            }

            $model->getPod()->setSaved();
        }

        return $converted;
    }
public function convertToPods($type, array $result, array $geoInfo = null)
    {
        $converted = $this->_toolbox->getPodManager()->convertToPods($type, $result);

        foreach ($converted as $model) {

            if ($geoInfo) {
                $model->getPod()->setDistanceInfo($geoInfo['latitude'], $geoInfo['longitude'], $geoInfo['podId']);
            }

            $model->getPod()->setSaved();
        }

        return $converted;
    }
Converts the an array of associative arrays (each representing a document) received from the server into pods.
@param  string $type    The collection type. For graphs, only "vertex" or "edge" is valid.
@param  array  $result  The array of documents to convert.
@param  array  $geoInfo An associative array of geo distance information we wish to load into the document.
@return array