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=4381504
HTTP 200 OK
Allow: OPTIONS, GET
Content-Type: application/json
Vary: Accept

{
    "features": [
        {
            "properties": {
                "pk": "441326"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4499998.36812386,
                                1876389.24973297
                            ],
                            [
                                -4416664.99593633,
                                2020726.88432782
                            ],
                            [
                                -4249998.25156128,
                                2020726.88432782
                            ],
                            [
                                -4166664.87937375,
                                1876389.24973297
                            ],
                            [
                                -4249998.25156128,
                                1732051.61513813
                            ],
                            [
                                -4416664.99593633,
                                1732051.61513813
                            ],
                            [
                                -4499998.36812386,
                                1876389.24973297
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441435"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3999998.13499869,
                                1587713.98054329
                            ],
                            [
                                -3916664.76281117,
                                1732051.61513813
                            ],
                            [
                                -3749998.01843611,
                                1732051.61513813
                            ],
                            [
                                -3666664.64624859,
                                1587713.98054329
                            ],
                            [
                                -3749998.01843611,
                                1443376.34594844
                            ],
                            [
                                -3916664.76281117,
                                1443376.34594844
                            ],
                            [
                                -3999998.13499869,
                                1587713.98054329
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441436"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3999998.13499869,
                                1876389.24973297
                            ],
                            [
                                -3916664.76281117,
                                2020726.88432782
                            ],
                            [
                                -3749998.01843611,
                                2020726.88432782
                            ],
                            [
                                -3666664.64624859,
                                1876389.24973297
                            ],
                            [
                                -3749998.01843611,
                                1732051.61513813
                            ],
                            [
                                -3916664.76281117,
                                1732051.61513813
                            ],
                            [
                                -3999998.13499869,
                                1876389.24973297
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441437"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3999998.13499869,
                                2165064.51892266
                            ],
                            [
                                -3916664.76281117,
                                2309402.15351751
                            ],
                            [
                                -3749998.01843611,
                                2309402.15351751
                            ],
                            [
                                -3666664.64624859,
                                2165064.51892266
                            ],
                            [
                                -3749998.01843611,
                                2020726.88432782
                            ],
                            [
                                -3916664.76281117,
                                2020726.88432782
                            ],
                            [
                                -3999998.13499869,
                                2165064.51892266
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441489"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3749998.01843611,
                                1443376.34594844
                            ],
                            [
                                -3666664.64624859,
                                1587713.98054329
                            ],
                            [
                                -3499997.90187353,
                                1587713.98054329
                            ],
                            [
                                -3416664.529686,
                                1443376.34594844
                            ],
                            [
                                -3499997.90187353,
                                1299038.7113536
                            ],
                            [
                                -3666664.64624859,
                                1299038.7113536
                            ],
                            [
                                -3749998.01843611,
                                1443376.34594844
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441490"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3749998.01843611,
                                1732051.61513813
                            ],
                            [
                                -3666664.64624859,
                                1876389.24973297
                            ],
                            [
                                -3499997.90187353,
                                1876389.24973297
                            ],
                            [
                                -3416664.529686,
                                1732051.61513813
                            ],
                            [
                                -3499997.90187353,
                                1587713.98054329
                            ],
                            [
                                -3666664.64624859,
                                1587713.98054329
                            ],
                            [
                                -3749998.01843611,
                                1732051.61513813
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441491"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3749998.01843611,
                                2020726.88432782
                            ],
                            [
                                -3666664.64624859,
                                2165064.51892266
                            ],
                            [
                                -3499997.90187353,
                                2165064.51892266
                            ],
                            [
                                -3416664.529686,
                                2020726.88432782
                            ],
                            [
                                -3499997.90187353,
                                1876389.24973297
                            ],
                            [
                                -3666664.64624859,
                                1876389.24973297
                            ],
                            [
                                -3749998.01843611,
                                2020726.88432782
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441492"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3749998.01843611,
                                2309402.15351751
                            ],
                            [
                                -3666664.64624859,
                                2453739.78811235
                            ],
                            [
                                -3499997.90187353,
                                2453739.78811235
                            ],
                            [
                                -3416664.529686,
                                2309402.15351751
                            ],
                            [
                                -3499997.90187353,
                                2165064.51892266
                            ],
                            [
                                -3666664.64624859,
                                2165064.51892266
                            ],
                            [
                                -3749998.01843611,
                                2309402.15351751
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441545"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3499997.90187353,
                                1587713.98054329
                            ],
                            [
                                -3416664.529686,
                                1732051.61513813
                            ],
                            [
                                -3249997.78531095,
                                1732051.61513813
                            ],
                            [
                                -3166664.41312342,
                                1587713.98054329
                            ],
                            [
                                -3249997.78531095,
                                1443376.34594844
                            ],
                            [
                                -3416664.529686,
                                1443376.34594844
                            ],
                            [
                                -3499997.90187353,
                                1587713.98054329
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441547"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3499997.90187353,
                                2165064.51892266
                            ],
                            [
                                -3416664.529686,
                                2309402.15351751
                            ],
                            [
                                -3249997.78531095,
                                2309402.15351751
                            ],
                            [
                                -3166664.41312342,
                                2165064.51892266
                            ],
                            [
                                -3249997.78531095,
                                2020726.88432782
                            ],
                            [
                                -3416664.529686,
                                2020726.88432782
                            ],
                            [
                                -3499997.90187353,
                                2165064.51892266
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441599"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3249997.78531095,
                                1443376.34594844
                            ],
                            [
                                -3166664.41312342,
                                1587713.98054329
                            ],
                            [
                                -2999997.66874837,
                                1587713.98054329
                            ],
                            [
                                -2916664.29656084,
                                1443376.34594844
                            ],
                            [
                                -2999997.66874837,
                                1299038.7113536
                            ],
                            [
                                -3166664.41312342,
                                1299038.7113536
                            ],
                            [
                                -3249997.78531095,
                                1443376.34594844
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441601"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3249997.78531095,
                                2020726.88432782
                            ],
                            [
                                -3166664.41312342,
                                2165064.51892266
                            ],
                            [
                                -2999997.66874837,
                                2165064.51892266
                            ],
                            [
                                -2916664.29656084,
                                2020726.88432782
                            ],
                            [
                                -2999997.66874837,
                                1876389.24973297
                            ],
                            [
                                -3166664.41312342,
                                1876389.24973297
                            ],
                            [
                                -3249997.78531095,
                                2020726.88432782
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441604"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3249997.78531095,
                                2886752.69189689
                            ],
                            [
                                -3166664.41312342,
                                3031090.32649173
                            ],
                            [
                                -2999997.66874837,
                                3031090.32649173
                            ],
                            [
                                -2916664.29656084,
                                2886752.69189689
                            ],
                            [
                                -2999997.66874837,
                                2742415.05730204
                            ],
                            [
                                -3166664.41312342,
                                2742415.05730204
                            ],
                            [
                                -3249997.78531095,
                                2886752.69189689
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441709"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2749997.55218579,
                                1443376.34594844
                            ],
                            [
                                -2666664.17999826,
                                1587713.98054329
                            ],
                            [
                                -2499997.43562321,
                                1587713.98054329
                            ],
                            [
                                -2416664.06343568,
                                1443376.34594844
                            ],
                            [
                                -2499997.43562321,
                                1299038.7113536
                            ],
                            [
                                -2666664.17999826,
                                1299038.7113536
                            ],
                            [
                                -2749997.55218579,
                                1443376.34594844
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441710"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2749997.55218579,
                                1732051.61513813
                            ],
                            [
                                -2666664.17999826,
                                1876389.24973297
                            ],
                            [
                                -2499997.43562321,
                                1876389.24973297
                            ],
                            [
                                -2416664.06343568,
                                1732051.61513813
                            ],
                            [
                                -2499997.43562321,
                                1587713.98054329
                            ],
                            [
                                -2666664.17999826,
                                1587713.98054329
                            ],
                            [
                                -2749997.55218579,
                                1732051.61513813
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441771"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2499997.43562321,
                                3319765.59568142
                            ],
                            [
                                -2416664.06343568,
                                3464103.23027626
                            ],
                            [
                                -2249997.31906062,
                                3464103.23027626
                            ],
                            [
                                -2166663.9468731,
                                3319765.59568142
                            ],
                            [
                                -2249997.31906062,
                                3175427.96108657
                            ],
                            [
                                -2416664.06343568,
                                3175427.96108657
                            ],
                            [
                                -2499997.43562321,
                                3319765.59568142
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442126"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -749996.619685135,
                                -5196154.84541439
                            ],
                            [
                                -666663.247497608,
                                -5051817.21081955
                            ],
                            [
                                -499996.503122553,
                                -5051817.21081955
                            ],
                            [
                                -416663.130935026,
                                -5196154.84541439
                            ],
                            [
                                -499996.503122553,
                                -5340492.48000924
                            ],
                            [
                                -666663.247497608,
                                -5340492.48000924
                            ],
                            [
                                -749996.619685135,
                                -5196154.84541439
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442238"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -249996.386559972,
                                -4618804.30703502
                            ],
                            [
                                -166663.014372444,
                                -4474466.67244017
                            ],
                            [
                                3.73000261001289,
                                -4474466.67244017
                            ],
                            [
                                83337.1021901372,
                                -4618804.30703502
                            ],
                            [
                                3.73000261001289,
                                -4763141.94162986
                            ],
                            [
                                -166663.014372444,
                                -4763141.94162986
                            ],
                            [
                                -249996.386559972,
                                -4618804.30703502
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442294"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3.73000261001289,
                                -4474466.67244017
                            ],
                            [
                                83337.1021901372,
                                -4330129.03784533
                            ],
                            [
                                250003.846565192,
                                -4330129.03784533
                            ],
                            [
                                333337.218752719,
                                -4474466.67244017
                            ],
                            [
                                250003.846565192,
                                -4618804.30703502
                            ],
                            [
                                83337.1021901372,
                                -4618804.30703502
                            ],
                            [
                                3.73000261001289,
                                -4474466.67244017
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442348"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                250003.846565192,
                                -4618804.30703502
                            ],
                            [
                                333337.218752719,
                                -4474466.67244017
                            ],
                            [
                                500003.963127773,
                                -4474466.67244017
                            ],
                            [
                                583337.3353153,
                                -4618804.30703502
                            ],
                            [
                                500003.963127773,
                                -4763141.94162986
                            ],
                            [
                                333337.218752719,
                                -4763141.94162986
                            ],
                            [
                                250003.846565192,
                                -4618804.30703502
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442353"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                250003.846565192,
                                -3175427.96108657
                            ],
                            [
                                333337.218752719,
                                -3031090.32649173
                            ],
                            [
                                500003.963127773,
                                -3031090.32649173
                            ],
                            [
                                583337.3353153,
                                -3175427.96108657
                            ],
                            [
                                500003.963127773,
                                -3319765.59568142
                            ],
                            [
                                333337.218752719,
                                -3319765.59568142
                            ],
                            [
                                250003.846565192,
                                -3175427.96108657
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442403"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                500003.963127773,
                                -4763141.94162986
                            ],
                            [
                                583337.3353153,
                                -4618804.30703502
                            ],
                            [
                                750004.079690354,
                                -4618804.30703502
                            ],
                            [
                                833337.451877881,
                                -4763141.94162986
                            ],
                            [
                                750004.079690354,
                                -4907479.5762247
                            ],
                            [
                                583337.3353153,
                                -4907479.5762247
                            ],
                            [
                                500003.963127773,
                                -4763141.94162986
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442404"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                500003.963127773,
                                -4474466.67244017
                            ],
                            [
                                583337.3353153,
                                -4330129.03784533
                            ],
                            [
                                750004.079690354,
                                -4330129.03784533
                            ],
                            [
                                833337.451877881,
                                -4474466.67244017
                            ],
                            [
                                750004.079690354,
                                -4618804.30703502
                            ],
                            [
                                583337.3353153,
                                -4618804.30703502
                            ],
                            [
                                500003.963127773,
                                -4474466.67244017
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442405"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                500003.963127773,
                                -4185791.40325048
                            ],
                            [
                                583337.3353153,
                                -4041453.76865564
                            ],
                            [
                                750004.079690354,
                                -4041453.76865564
                            ],
                            [
                                833337.451877881,
                                -4185791.40325048
                            ],
                            [
                                750004.079690354,
                                -4330129.03784533
                            ],
                            [
                                583337.3353153,
                                -4330129.03784533
                            ],
                            [
                                500003.963127773,
                                -4185791.40325048
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442458"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                750004.079690354,
                                -4618804.30703502
                            ],
                            [
                                833337.451877881,
                                -4474466.67244017
                            ],
                            [
                                1000004.19625294,
                                -4474466.67244017
                            ],
                            [
                                1083337.56844046,
                                -4618804.30703502
                            ],
                            [
                                1000004.19625294,
                                -4763141.94162986
                            ],
                            [
                                833337.451877881,
                                -4763141.94162986
                            ],
                            [
                                750004.079690354,
                                -4618804.30703502
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442459"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                750004.079690354,
                                -4330129.03784533
                            ],
                            [
                                833337.451877881,
                                -4185791.40325048
                            ],
                            [
                                1000004.19625294,
                                -4185791.40325048
                            ],
                            [
                                1083337.56844046,
                                -4330129.03784533
                            ],
                            [
                                1000004.19625294,
                                -4474466.67244017
                            ],
                            [
                                833337.451877881,
                                -4474466.67244017
                            ],
                            [
                                750004.079690354,
                                -4330129.03784533
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442461"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                750004.079690354,
                                -3752778.49946595
                            ],
                            [
                                833337.451877881,
                                -3608440.86487111
                            ],
                            [
                                1000004.19625294,
                                -3608440.86487111
                            ],
                            [
                                1083337.56844046,
                                -3752778.49946595
                            ],
                            [
                                1000004.19625294,
                                -3897116.13406079
                            ],
                            [
                                833337.451877881,
                                -3897116.13406079
                            ],
                            [
                                750004.079690354,
                                -3752778.49946595
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442514"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1000004.19625294,
                                -4474466.67244017
                            ],
                            [
                                1083337.56844046,
                                -4330129.03784533
                            ],
                            [
                                1250004.31281552,
                                -4330129.03784533
                            ],
                            [
                                1333337.68500304,
                                -4474466.67244017
                            ],
                            [
                                1250004.31281552,
                                -4618804.30703502
                            ],
                            [
                                1083337.56844046,
                                -4618804.30703502
                            ],
                            [
                                1000004.19625294,
                                -4474466.67244017
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442515"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1000004.19625294,
                                -4185791.40325048
                            ],
                            [
                                1083337.56844046,
                                -4041453.76865564
                            ],
                            [
                                1250004.31281552,
                                -4041453.76865564
                            ],
                            [
                                1333337.68500304,
                                -4185791.40325048
                            ],
                            [
                                1250004.31281552,
                                -4330129.03784533
                            ],
                            [
                                1083337.56844046,
                                -4330129.03784533
                            ],
                            [
                                1000004.19625294,
                                -4185791.40325048
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442518"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1000004.19625294,
                                -3319765.59568142
                            ],
                            [
                                1083337.56844046,
                                -3175427.96108657
                            ],
                            [
                                1250004.31281552,
                                -3175427.96108657
                            ],
                            [
                                1333337.68500304,
                                -3319765.59568142
                            ],
                            [
                                1250004.31281552,
                                -3464103.23027626
                            ],
                            [
                                1083337.56844046,
                                -3464103.23027626
                            ],
                            [
                                1000004.19625294,
                                -3319765.59568142
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}