Paradox/pod/Document.php
public function getCoordinates()
    {
        $fields = $this->_toolbox->getCollectionManager()->getGeoFieldsForAQL($this->getType());

        //A geo1 index (field is an array with the coordinates).
        if ($fields) {
            if (count($fields) == 1) {

                $field = $this->get($fields[0]);

                return array('latitude' => $field[0], 'longitude' => $field[1]);

                //A geo2 index (2 fields each representing latitue and longitude).
            } else {
                $latitude = $this->get($fields[0]);
                $longitude = $this->get($fields[1]);

                return array('latitude' => $latitude, 'longitude' => $longitude);
            }
        }

        return null;
    }
public function getCoordinates()
    {
        $fields = $this->_toolbox->getCollectionManager()->getGeoFieldsForAQL($this->getType());

        //A geo1 index (field is an array with the coordinates).
        if ($fields) {
            if (count($fields) == 1) {

                $field = $this->get($fields[0]);

                return array('latitude' => $field[0], 'longitude' => $field[1]);

                //A geo2 index (2 fields each representing latitue and longitude).
            } else {
                $latitude = $this->get($fields[0]);
                $longitude = $this->get($fields[1]);

                return array('latitude' => $latitude, 'longitude' => $longitude);
            }
        }

        return null;
    }
Get the coordinates (latitude and longitude) from this pod's first geo index if it exists.
@return null|array