Paradox/toolbox/CollectionManager.php
public function getGeoFieldsForAQL($collection)
    {
        $indices = $this->_toolbox->getCollectionManager()->listIndices($collection, true);

        foreach ($indices as $index => $info) {

            //If this is the first geo index we encounter
            if ($info['type'] == "geo1" || $info['type'] == "geo2") {
                return $info['fields'];
            }
        }

        return null;
    }
public function getGeoFieldsForAQL($collection)
    {
        $indices = $this->_toolbox->getCollectionManager()->listIndices($collection, true);

        foreach ($indices as $index => $info) {

            //If this is the first geo index we encounter
            if ($info['type'] == "geo1" || $info['type'] == "geo2") {
                return $info['fields'];
            }
        }

        return null;
    }
Get the fields that are used to store geo coordinates for the first index for this collection.
@param  string          $collection The name of the collection
@throws FinderException
@return array|null