private function mapGeoRadiusResults($results)
    {
        $ret = [];

        // Simple array of point names (no options provided)
        if (!is_array($results[0])) {
            foreach ($results as $point) {
                array_push($ret, ['name' => $point]);
            }

            return $ret;
        }

        foreach ($results as $point) {
            // The point id is always the first item
            $p = ['name' => $point[0]];
            $pointLength = count($point);

            for ($i = 1; $i < $pointLength; $i++) {
                // withcoord results are stored in an array...
                if (is_array($point[$i])) {
                    $p['coordinates'] = [];

                    foreach ($point[$i] as $coord) {
                        array_push($p['coordinates'], floatval($coord));
                    }
                } else {
                    // ... while withdist ones are not
                    $p['distance'] = floatval($point[$i]);
                }
            }

            array_push($ret, $p);
        }

        return $ret;
    }