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

{
    "features": [
        {
            "properties": {
                "pk": "441720"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2749997.55218579,
                                4618804.30703502
                            ],
                            [
                                -2666664.17999826,
                                4763141.94162986
                            ],
                            [
                                -2499997.43562321,
                                4763141.94162986
                            ],
                            [
                                -2416664.06343568,
                                4618804.30703502
                            ],
                            [
                                -2499997.43562321,
                                4474466.67244017
                            ],
                            [
                                -2666664.17999826,
                                4474466.67244017
                            ],
                            [
                                -2749997.55218579,
                                4618804.30703502
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441767"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2499997.43562321,
                                2165064.51892266
                            ],
                            [
                                -2416664.06343568,
                                2309402.15351751
                            ],
                            [
                                -2249997.31906062,
                                2309402.15351751
                            ],
                            [
                                -2166663.9468731,
                                2165064.51892266
                            ],
                            [
                                -2249997.31906062,
                                2020726.88432782
                            ],
                            [
                                -2416664.06343568,
                                2020726.88432782
                            ],
                            [
                                -2499997.43562321,
                                2165064.51892266
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441826"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2249997.31906062,
                                3464103.23027626
                            ],
                            [
                                -2166663.9468731,
                                3608440.86487111
                            ],
                            [
                                -1999997.20249804,
                                3608440.86487111
                            ],
                            [
                                -1916663.83031052,
                                3464103.23027626
                            ],
                            [
                                -1999997.20249804,
                                3319765.59568142
                            ],
                            [
                                -2166663.9468731,
                                3319765.59568142
                            ],
                            [
                                -2249997.31906062,
                                3464103.23027626
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441880"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -1999997.20249804,
                                3031090.32649173
                            ],
                            [
                                -1916663.83031052,
                                3175427.96108657
                            ],
                            [
                                -1749997.08593546,
                                3175427.96108657
                            ],
                            [
                                -1666663.71374793,
                                3031090.32649173
                            ],
                            [
                                -1749997.08593546,
                                2886752.69189689
                            ],
                            [
                                -1916663.83031052,
                                2886752.69189689
                            ],
                            [
                                -1999997.20249804,
                                3031090.32649173
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441987"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -1499996.96937288,
                                2165064.51892266
                            ],
                            [
                                -1416663.59718535,
                                2309402.15351751
                            ],
                            [
                                -1249996.8528103,
                                2309402.15351751
                            ],
                            [
                                -1166663.48062277,
                                2165064.51892266
                            ],
                            [
                                -1249996.8528103,
                                2020726.88432782
                            ],
                            [
                                -1416663.59718535,
                                2020726.88432782
                            ],
                            [
                                -1499996.96937288,
                                2165064.51892266
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442098"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -999996.736247716,
                                2453739.78811235
                            ],
                            [
                                -916663.364060189,
                                2598077.4227072
                            ],
                            [
                                -749996.619685135,
                                2598077.4227072
                            ],
                            [
                                -666663.247497608,
                                2453739.78811235
                            ],
                            [
                                -749996.619685135,
                                2309402.15351751
                            ],
                            [
                                -916663.364060189,
                                2309402.15351751
                            ],
                            [
                                -999996.736247716,
                                2453739.78811235
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442152"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -749996.619685135,
                                2309402.15351751
                            ],
                            [
                                -666663.247497608,
                                2453739.78811235
                            ],
                            [
                                -499996.503122553,
                                2453739.78811235
                            ],
                            [
                                -416663.130935026,
                                2309402.15351751
                            ],
                            [
                                -499996.503122553,
                                2165064.51892266
                            ],
                            [
                                -666663.247497608,
                                2165064.51892266
                            ],
                            [
                                -749996.619685135,
                                2309402.15351751
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442153"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -749996.619685135,
                                2598077.4227072
                            ],
                            [
                                -666663.247497608,
                                2742415.05730204
                            ],
                            [
                                -499996.503122553,
                                2742415.05730204
                            ],
                            [
                                -416663.130935026,
                                2598077.4227072
                            ],
                            [
                                -499996.503122553,
                                2453739.78811235
                            ],
                            [
                                -666663.247497608,
                                2453739.78811235
                            ],
                            [
                                -749996.619685135,
                                2598077.4227072
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442263"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -249996.386559972,
                                2598077.4227072
                            ],
                            [
                                -166663.014372444,
                                2742415.05730204
                            ],
                            [
                                3.73000261001289,
                                2742415.05730204
                            ],
                            [
                                83337.1021901372,
                                2598077.4227072
                            ],
                            [
                                3.73000261001289,
                                2453739.78811235
                            ],
                            [
                                -166663.014372444,
                                2453739.78811235
                            ],
                            [
                                -249996.386559972,
                                2598077.4227072
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442270"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -249996.386559972,
                                4618804.30703502
                            ],
                            [
                                -166663.014372444,
                                4763141.94162986
                            ],
                            [
                                3.73000261001289,
                                4763141.94162986
                            ],
                            [
                                83337.1021901372,
                                4618804.30703502
                            ],
                            [
                                3.73000261001289,
                                4474466.67244017
                            ],
                            [
                                -166663.014372444,
                                4474466.67244017
                            ],
                            [
                                -249996.386559972,
                                4618804.30703502
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442326"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3.73000261001289,
                                4763141.94162986
                            ],
                            [
                                83337.1021901372,
                                4907479.57622471
                            ],
                            [
                                250003.846565192,
                                4907479.57622471
                            ],
                            [
                                333337.218752719,
                                4763141.94162986
                            ],
                            [
                                250003.846565192,
                                4618804.30703502
                            ],
                            [
                                83337.1021901372,
                                4618804.30703502
                            ],
                            [
                                3.73000261001289,
                                4763141.94162986
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442355"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                250003.846565192,
                                -2598077.4227072
                            ],
                            [
                                333337.218752719,
                                -2453739.78811235
                            ],
                            [
                                500003.963127773,
                                -2453739.78811235
                            ],
                            [
                                583337.3353153,
                                -2598077.4227072
                            ],
                            [
                                500003.963127773,
                                -2742415.05730204
                            ],
                            [
                                333337.218752719,
                                -2742415.05730204
                            ],
                            [
                                250003.846565192,
                                -2598077.4227072
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442483"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                750004.079690354,
                                2598077.4227072
                            ],
                            [
                                833337.451877881,
                                2742415.05730204
                            ],
                            [
                                1000004.19625294,
                                2742415.05730204
                            ],
                            [
                                1083337.56844046,
                                2598077.4227072
                            ],
                            [
                                1000004.19625294,
                                2453739.78811235
                            ],
                            [
                                833337.451877881,
                                2453739.78811235
                            ],
                            [
                                750004.079690354,
                                2598077.4227072
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442537"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1000004.19625294,
                                2165064.51892266
                            ],
                            [
                                1083337.56844046,
                                2309402.15351751
                            ],
                            [
                                1250004.31281552,
                                2309402.15351751
                            ],
                            [
                                1333337.68500304,
                                2165064.51892266
                            ],
                            [
                                1250004.31281552,
                                2020726.88432782
                            ],
                            [
                                1083337.56844046,
                                2020726.88432782
                            ],
                            [
                                1000004.19625294,
                                2165064.51892266
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442538"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1000004.19625294,
                                2453739.78811235
                            ],
                            [
                                1083337.56844046,
                                2598077.4227072
                            ],
                            [
                                1250004.31281552,
                                2598077.4227072
                            ],
                            [
                                1333337.68500304,
                                2453739.78811235
                            ],
                            [
                                1250004.31281552,
                                2309402.15351751
                            ],
                            [
                                1083337.56844046,
                                2309402.15351751
                            ],
                            [
                                1000004.19625294,
                                2453739.78811235
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442539"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1000004.19625294,
                                2742415.05730204
                            ],
                            [
                                1083337.56844046,
                                2886752.69189689
                            ],
                            [
                                1250004.31281552,
                                2886752.69189689
                            ],
                            [
                                1333337.68500304,
                                2742415.05730204
                            ],
                            [
                                1250004.31281552,
                                2598077.4227072
                            ],
                            [
                                1083337.56844046,
                                2598077.4227072
                            ],
                            [
                                1000004.19625294,
                                2742415.05730204
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442541"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1000004.19625294,
                                3319765.59568142
                            ],
                            [
                                1083337.56844046,
                                3464103.23027626
                            ],
                            [
                                1250004.31281552,
                                3464103.23027626
                            ],
                            [
                                1333337.68500304,
                                3319765.59568142
                            ],
                            [
                                1250004.31281552,
                                3175427.96108657
                            ],
                            [
                                1083337.56844046,
                                3175427.96108657
                            ],
                            [
                                1000004.19625294,
                                3319765.59568142
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442594"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1250004.31281552,
                                2886752.69189689
                            ],
                            [
                                1333337.68500304,
                                3031090.32649173
                            ],
                            [
                                1500004.4293781,
                                3031090.32649173
                            ],
                            [
                                1583337.80156563,
                                2886752.69189689
                            ],
                            [
                                1500004.4293781,
                                2742415.05730204
                            ],
                            [
                                1333337.68500304,
                                2742415.05730204
                            ],
                            [
                                1250004.31281552,
                                2886752.69189689
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442595"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1250004.31281552,
                                3175427.96108657
                            ],
                            [
                                1333337.68500304,
                                3319765.59568142
                            ],
                            [
                                1500004.4293781,
                                3319765.59568142
                            ],
                            [
                                1583337.80156563,
                                3175427.96108657
                            ],
                            [
                                1500004.4293781,
                                3031090.32649173
                            ],
                            [
                                1333337.68500304,
                                3031090.32649173
                            ],
                            [
                                1250004.31281552,
                                3175427.96108657
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442596"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1250004.31281552,
                                3464103.23027626
                            ],
                            [
                                1333337.68500304,
                                3608440.86487111
                            ],
                            [
                                1500004.4293781,
                                3608440.86487111
                            ],
                            [
                                1583337.80156563,
                                3464103.23027626
                            ],
                            [
                                1500004.4293781,
                                3319765.59568142
                            ],
                            [
                                1333337.68500304,
                                3319765.59568142
                            ],
                            [
                                1250004.31281552,
                                3464103.23027626
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442650"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1500004.4293781,
                                3031090.32649173
                            ],
                            [
                                1583337.80156563,
                                3175427.96108657
                            ],
                            [
                                1750004.54594068,
                                3175427.96108657
                            ],
                            [
                                1833337.91812821,
                                3031090.32649173
                            ],
                            [
                                1750004.54594068,
                                2886752.69189689
                            ],
                            [
                                1583337.80156563,
                                2886752.69189689
                            ],
                            [
                                1500004.4293781,
                                3031090.32649173
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442705"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1750004.54594068,
                                3175427.96108657
                            ],
                            [
                                1833337.91812821,
                                3319765.59568142
                            ],
                            [
                                2000004.66250326,
                                3319765.59568142
                            ],
                            [
                                2083338.03469079,
                                3175427.96108657
                            ],
                            [
                                2000004.66250326,
                                3031090.32649173
                            ],
                            [
                                1833337.91812821,
                                3031090.32649173
                            ],
                            [
                                1750004.54594068,
                                3175427.96108657
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442796"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2250004.77906584,
                                -2309402.15351751
                            ],
                            [
                                2333338.15125337,
                                -2165064.51892266
                            ],
                            [
                                2500004.89562843,
                                -2165064.51892266
                            ],
                            [
                                2583338.26781595,
                                -2309402.15351751
                            ],
                            [
                                2500004.89562843,
                                -2453739.78811235
                            ],
                            [
                                2333338.15125337,
                                -2453739.78811235
                            ],
                            [
                                2250004.77906584,
                                -2309402.15351751
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443130"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3750005.47844133,
                                -1154701.07675875
                            ],
                            [
                                3833338.85062886,
                                -1010363.44216391
                            ],
                            [
                                4000005.59500391,
                                -1010363.44216391
                            ],
                            [
                                4083338.96719144,
                                -1154701.07675875
                            ],
                            [
                                4000005.59500391,
                                -1299038.7113536
                            ],
                            [
                                3833338.85062886,
                                -1299038.7113536
                            ],
                            [
                                3750005.47844133,
                                -1154701.07675875
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}