Process queries for HexGrid objects.
:param request: HTTP GET request
:return: JSON format of HexGrid (only pk and count) or GeoJSON of the geom of HexGrid.

GET /api/occurrence/grid/?type=occurrence&taxon=9474
HTTP 200 OK
Allow: OPTIONS, GET
Content-Type: application/json
Vary: Accept

{
    "features": [
        {
            "properties": {
                "pk": "440613"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -7749999.88343742,
                                2598077.4227072
                            ],
                            [
                                -7666666.51124989,
                                2742415.05730204
                            ],
                            [
                                -7499999.76687484,
                                2742415.05730204
                            ],
                            [
                                -7416666.39468731,
                                2598077.4227072
                            ],
                            [
                                -7499999.76687484,
                                2453739.78811235
                            ],
                            [
                                -7666666.51124989,
                                2453739.78811235
                            ],
                            [
                                -7749999.88343742,
                                2598077.4227072
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "440832"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -6749999.41718709,
                                2309402.15351751
                            ],
                            [
                                -6666666.04499956,
                                2453739.78811235
                            ],
                            [
                                -6499999.30062451,
                                2453739.78811235
                            ],
                            [
                                -6416665.92843698,
                                2309402.15351751
                            ],
                            [
                                -6499999.30062451,
                                2165064.51892266
                            ],
                            [
                                -6666666.04499956,
                                2165064.51892266
                            ],
                            [
                                -6749999.41718709,
                                2309402.15351751
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "440887"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -6499999.30062451,
                                2165064.51892266
                            ],
                            [
                                -6416665.92843698,
                                2309402.15351751
                            ],
                            [
                                -6249999.18406193,
                                2309402.15351751
                            ],
                            [
                                -6166665.8118744,
                                2165064.51892266
                            ],
                            [
                                -6249999.18406193,
                                2020726.88432782
                            ],
                            [
                                -6416665.92843698,
                                2020726.88432782
                            ],
                            [
                                -6499999.30062451,
                                2165064.51892266
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441050"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -5749998.95093677,
                                1732051.61513813
                            ],
                            [
                                -5666665.57874924,
                                1876389.24973297
                            ],
                            [
                                -5499998.83437418,
                                1876389.24973297
                            ],
                            [
                                -5416665.46218666,
                                1732051.61513813
                            ],
                            [
                                -5499998.83437418,
                                1587713.98054329
                            ],
                            [
                                -5666665.57874924,
                                1587713.98054329
                            ],
                            [
                                -5749998.95093677,
                                1732051.61513813
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441214"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4999998.60124902,
                                1299038.7113536
                            ],
                            [
                                -4916665.22906149,
                                1443376.34594844
                            ],
                            [
                                -4749998.48468644,
                                1443376.34594844
                            ],
                            [
                                -4666665.11249891,
                                1299038.7113536
                            ],
                            [
                                -4749998.48468644,
                                1154701.07675875
                            ],
                            [
                                -4916665.22906149,
                                1154701.07675875
                            ],
                            [
                                -4999998.60124902,
                                1299038.7113536
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441383"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4249998.25156128,
                                2598077.4227072
                            ],
                            [
                                -4166664.87937375,
                                2742415.05730204
                            ],
                            [
                                -3999998.13499869,
                                2742415.05730204
                            ],
                            [
                                -3916664.76281117,
                                2598077.4227072
                            ],
                            [
                                -3999998.13499869,
                                2453739.78811235
                            ],
                            [
                                -4166664.87937375,
                                2453739.78811235
                            ],
                            [
                                -4249998.25156128,
                                2598077.4227072
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441822"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2249997.31906062,
                                2309402.15351751
                            ],
                            [
                                -2166663.9468731,
                                2453739.78811235
                            ],
                            [
                                -1999997.20249804,
                                2453739.78811235
                            ],
                            [
                                -1916663.83031052,
                                2309402.15351751
                            ],
                            [
                                -1999997.20249804,
                                2165064.51892266
                            ],
                            [
                                -2166663.9468731,
                                2165064.51892266
                            ],
                            [
                                -2249997.31906062,
                                2309402.15351751
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441823"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2249997.31906062,
                                2598077.4227072
                            ],
                            [
                                -2166663.9468731,
                                2742415.05730204
                            ],
                            [
                                -1999997.20249804,
                                2742415.05730204
                            ],
                            [
                                -1916663.83031052,
                                2598077.4227072
                            ],
                            [
                                -1999997.20249804,
                                2453739.78811235
                            ],
                            [
                                -2166663.9468731,
                                2453739.78811235
                            ],
                            [
                                -2249997.31906062,
                                2598077.4227072
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441877"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -1999997.20249804,
                                2165064.51892266
                            ],
                            [
                                -1916663.83031052,
                                2309402.15351751
                            ],
                            [
                                -1749997.08593546,
                                2309402.15351751
                            ],
                            [
                                -1666663.71374793,
                                2165064.51892266
                            ],
                            [
                                -1749997.08593546,
                                2020726.88432782
                            ],
                            [
                                -1916663.83031052,
                                2020726.88432782
                            ],
                            [
                                -1999997.20249804,
                                2165064.51892266
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}