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

{
    "features": [
        {
            "properties": {
                "pk": "441382"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4249998.25156128,
                                2309402.15351751
                            ],
                            [
                                -4166664.87937375,
                                2453739.78811235
                            ],
                            [
                                -3999998.13499869,
                                2453739.78811235
                            ],
                            [
                                -3916664.76281117,
                                2309402.15351751
                            ],
                            [
                                -3999998.13499869,
                                2165064.51892266
                            ],
                            [
                                -4166664.87937375,
                                2165064.51892266
                            ],
                            [
                                -4249998.25156128,
                                2309402.15351751
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441432"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3999998.13499869,
                                721688.172974221
                            ],
                            [
                                -3916664.76281117,
                                866025.807569066
                            ],
                            [
                                -3749998.01843611,
                                866025.807569066
                            ],
                            [
                                -3666664.64624859,
                                721688.172974221
                            ],
                            [
                                -3749998.01843611,
                                577350.538379378
                            ],
                            [
                                -3916664.76281117,
                                577350.538379378
                            ],
                            [
                                -3999998.13499869,
                                721688.172974221
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441438"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3999998.13499869,
                                2453739.78811235
                            ],
                            [
                                -3916664.76281117,
                                2598077.4227072
                            ],
                            [
                                -3749998.01843611,
                                2598077.4227072
                            ],
                            [
                                -3666664.64624859,
                                2453739.78811235
                            ],
                            [
                                -3749998.01843611,
                                2309402.15351751
                            ],
                            [
                                -3916664.76281117,
                                2309402.15351751
                            ],
                            [
                                -3999998.13499869,
                                2453739.78811235
                            ]
                        ]
                    ]
                ],
                "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": "441607"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3249997.78531095,
                                3752778.49946595
                            ],
                            [
                                -3166664.41312342,
                                3897116.13406079
                            ],
                            [
                                -2999997.66874837,
                                3897116.13406079
                            ],
                            [
                                -2916664.29656084,
                                3752778.49946595
                            ],
                            [
                                -2999997.66874837,
                                3608440.86487111
                            ],
                            [
                                -3166664.41312342,
                                3608440.86487111
                            ],
                            [
                                -3249997.78531095,
                                3752778.49946595
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441719"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2749997.55218579,
                                4330129.03784533
                            ],
                            [
                                -2666664.17999826,
                                4474466.67244017
                            ],
                            [
                                -2499997.43562321,
                                4474466.67244017
                            ],
                            [
                                -2416664.06343568,
                                4330129.03784533
                            ],
                            [
                                -2499997.43562321,
                                4185791.40325048
                            ],
                            [
                                -2666664.17999826,
                                4185791.40325048
                            ],
                            [
                                -2749997.55218579,
                                4330129.03784533
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442037"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -1249996.8528103,
                                866025.807569066
                            ],
                            [
                                -1166663.48062277,
                                1010363.44216391
                            ],
                            [
                                -999996.736247716,
                                1010363.44216391
                            ],
                            [
                                -916663.364060189,
                                866025.807569066
                            ],
                            [
                                -999996.736247716,
                                721688.172974221
                            ],
                            [
                                -1166663.48062277,
                                721688.172974221
                            ],
                            [
                                -1249996.8528103,
                                866025.807569066
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442038"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -1249996.8528103,
                                1154701.07675875
                            ],
                            [
                                -1166663.48062277,
                                1299038.7113536
                            ],
                            [
                                -999996.736247716,
                                1299038.7113536
                            ],
                            [
                                -916663.364060189,
                                1154701.07675875
                            ],
                            [
                                -999996.736247716,
                                1010363.44216391
                            ],
                            [
                                -1166663.48062277,
                                1010363.44216391
                            ],
                            [
                                -1249996.8528103,
                                1154701.07675875
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442039"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -1249996.8528103,
                                1443376.34594844
                            ],
                            [
                                -1166663.48062277,
                                1587713.98054329
                            ],
                            [
                                -999996.736247716,
                                1587713.98054329
                            ],
                            [
                                -916663.364060189,
                                1443376.34594844
                            ],
                            [
                                -999996.736247716,
                                1299038.7113536
                            ],
                            [
                                -1166663.48062277,
                                1299038.7113536
                            ],
                            [
                                -1249996.8528103,
                                1443376.34594844
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442146"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -749996.619685135,
                                577350.538379378
                            ],
                            [
                                -666663.247497608,
                                721688.172974221
                            ],
                            [
                                -499996.503122553,
                                721688.172974221
                            ],
                            [
                                -416663.130935026,
                                577350.538379378
                            ],
                            [
                                -499996.503122553,
                                433012.903784533
                            ],
                            [
                                -666663.247497608,
                                433012.903784533
                            ],
                            [
                                -749996.619685135,
                                577350.538379378
                            ]
                        ]
                    ]
                ],
                "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": "442328"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3.73000261001289,
                                5340492.48000924
                            ],
                            [
                                83337.1021901372,
                                5484830.11460408
                            ],
                            [
                                250003.846565192,
                                5484830.11460408
                            ],
                            [
                                333337.218752719,
                                5340492.48000924
                            ],
                            [
                                250003.846565192,
                                5196154.84541439
                            ],
                            [
                                83337.1021901372,
                                5196154.84541439
                            ],
                            [
                                3.73000261001289,
                                5340492.48000924
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442509"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1000004.19625294,
                                -5917843.01838861
                            ],
                            [
                                1083337.56844046,
                                -5773505.38379377
                            ],
                            [
                                1250004.31281552,
                                -5773505.38379377
                            ],
                            [
                                1333337.68500304,
                                -5917843.01838861
                            ],
                            [
                                1250004.31281552,
                                -6062180.65298346
                            ],
                            [
                                1083337.56844046,
                                -6062180.65298346
                            ],
                            [
                                1000004.19625294,
                                -5917843.01838861
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442570"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1250004.31281552,
                                -4041453.76865564
                            ],
                            [
                                1333337.68500304,
                                -3897116.13406079
                            ],
                            [
                                1500004.4293781,
                                -3897116.13406079
                            ],
                            [
                                1583337.80156563,
                                -4041453.76865564
                            ],
                            [
                                1500004.4293781,
                                -4185791.40325048
                            ],
                            [
                                1333337.68500304,
                                -4185791.40325048
                            ],
                            [
                                1250004.31281552,
                                -4041453.76865564
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442571"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1250004.31281552,
                                -3752778.49946595
                            ],
                            [
                                1333337.68500304,
                                -3608440.86487111
                            ],
                            [
                                1500004.4293781,
                                -3608440.86487111
                            ],
                            [
                                1583337.80156563,
                                -3752778.49946595
                            ],
                            [
                                1500004.4293781,
                                -3897116.13406079
                            ],
                            [
                                1333337.68500304,
                                -3897116.13406079
                            ],
                            [
                                1250004.31281552,
                                -3752778.49946595
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442601"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1250004.31281552,
                                4907479.57622471
                            ],
                            [
                                1333337.68500304,
                                5051817.21081955
                            ],
                            [
                                1500004.4293781,
                                5051817.21081955
                            ],
                            [
                                1583337.80156563,
                                4907479.57622471
                            ],
                            [
                                1500004.4293781,
                                4763141.94162986
                            ],
                            [
                                1333337.68500304,
                                4763141.94162986
                            ],
                            [
                                1250004.31281552,
                                4907479.57622471
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442737"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2000004.66250326,
                                -3608440.86487111
                            ],
                            [
                                2083338.03469079,
                                -3464103.23027626
                            ],
                            [
                                2250004.77906584,
                                -3464103.23027626
                            ],
                            [
                                2333338.15125337,
                                -3608440.86487111
                            ],
                            [
                                2250004.77906584,
                                -3752778.49946595
                            ],
                            [
                                2083338.03469079,
                                -3752778.49946595
                            ],
                            [
                                2000004.66250326,
                                -3608440.86487111
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442792"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2250004.77906584,
                                -3464103.23027626
                            ],
                            [
                                2333338.15125337,
                                -3319765.59568142
                            ],
                            [
                                2500004.89562843,
                                -3319765.59568142
                            ],
                            [
                                2583338.26781595,
                                -3464103.23027626
                            ],
                            [
                                2500004.89562843,
                                -3608440.86487111
                            ],
                            [
                                2333338.15125337,
                                -3608440.86487111
                            ],
                            [
                                2250004.77906584,
                                -3464103.23027626
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442845"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2500004.89562843,
                                -4185791.40325048
                            ],
                            [
                                2583338.26781595,
                                -4041453.76865564
                            ],
                            [
                                2750005.01219101,
                                -4041453.76865564
                            ],
                            [
                                2833338.38437853,
                                -4185791.40325048
                            ],
                            [
                                2750005.01219101,
                                -4330129.03784533
                            ],
                            [
                                2583338.26781595,
                                -4330129.03784533
                            ],
                            [
                                2500004.89562843,
                                -4185791.40325048
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442847"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2500004.89562843,
                                -3608440.86487111
                            ],
                            [
                                2583338.26781595,
                                -3464103.23027626
                            ],
                            [
                                2750005.01219101,
                                -3464103.23027626
                            ],
                            [
                                2833338.38437853,
                                -3608440.86487111
                            ],
                            [
                                2750005.01219101,
                                -3752778.49946595
                            ],
                            [
                                2583338.26781595,
                                -3752778.49946595
                            ],
                            [
                                2500004.89562843,
                                -3608440.86487111
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443145"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3750005.47844133,
                                3175427.96108657
                            ],
                            [
                                3833338.85062886,
                                3319765.59568142
                            ],
                            [
                                4000005.59500391,
                                3319765.59568142
                            ],
                            [
                                4083338.96719144,
                                3175427.96108657
                            ],
                            [
                                4000005.59500391,
                                3031090.32649173
                            ],
                            [
                                3833338.85062886,
                                3031090.32649173
                            ],
                            [
                                3750005.47844133,
                                3175427.96108657
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443194"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4000005.59500391,
                                1299038.7113536
                            ],
                            [
                                4083338.96719144,
                                1443376.34594844
                            ],
                            [
                                4250005.7115665,
                                1443376.34594844
                            ],
                            [
                                4333339.08375402,
                                1299038.7113536
                            ],
                            [
                                4250005.7115665,
                                1154701.07675875
                            ],
                            [
                                4083338.96719144,
                                1154701.07675875
                            ],
                            [
                                4000005.59500391,
                                1299038.7113536
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443195"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4000005.59500391,
                                1587713.98054329
                            ],
                            [
                                4083338.96719144,
                                1732051.61513813
                            ],
                            [
                                4250005.7115665,
                                1732051.61513813
                            ],
                            [
                                4333339.08375402,
                                1587713.98054329
                            ],
                            [
                                4250005.7115665,
                                1443376.34594844
                            ],
                            [
                                4083338.96719144,
                                1443376.34594844
                            ],
                            [
                                4000005.59500391,
                                1587713.98054329
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443196"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4000005.59500391,
                                1876389.24973297
                            ],
                            [
                                4083338.96719144,
                                2020726.88432782
                            ],
                            [
                                4250005.7115665,
                                2020726.88432782
                            ],
                            [
                                4333339.08375402,
                                1876389.24973297
                            ],
                            [
                                4250005.7115665,
                                1732051.61513813
                            ],
                            [
                                4083338.96719144,
                                1732051.61513813
                            ],
                            [
                                4000005.59500391,
                                1876389.24973297
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443248"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4250005.7115665,
                                1154701.07675875
                            ],
                            [
                                4333339.08375402,
                                1299038.7113536
                            ],
                            [
                                4500005.82812908,
                                1299038.7113536
                            ],
                            [
                                4583339.2003166,
                                1154701.07675875
                            ],
                            [
                                4500005.82812908,
                                1010363.44216391
                            ],
                            [
                                4333339.08375402,
                                1010363.44216391
                            ],
                            [
                                4250005.7115665,
                                1154701.07675875
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443249"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4250005.7115665,
                                1443376.34594844
                            ],
                            [
                                4333339.08375402,
                                1587713.98054329
                            ],
                            [
                                4500005.82812908,
                                1587713.98054329
                            ],
                            [
                                4583339.2003166,
                                1443376.34594844
                            ],
                            [
                                4500005.82812908,
                                1299038.7113536
                            ],
                            [
                                4333339.08375402,
                                1299038.7113536
                            ],
                            [
                                4250005.7115665,
                                1443376.34594844
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443250"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4250005.7115665,
                                1732051.61513813
                            ],
                            [
                                4333339.08375402,
                                1876389.24973297
                            ],
                            [
                                4500005.82812908,
                                1876389.24973297
                            ],
                            [
                                4583339.2003166,
                                1732051.61513813
                            ],
                            [
                                4500005.82812908,
                                1587713.98054329
                            ],
                            [
                                4333339.08375402,
                                1587713.98054329
                            ],
                            [
                                4250005.7115665,
                                1732051.61513813
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443304"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4500005.82812908,
                                1299038.7113536
                            ],
                            [
                                4583339.2003166,
                                1443376.34594844
                            ],
                            [
                                4750005.94469166,
                                1443376.34594844
                            ],
                            [
                                4833339.31687919,
                                1299038.7113536
                            ],
                            [
                                4750005.94469166,
                                1154701.07675875
                            ],
                            [
                                4583339.2003166,
                                1154701.07675875
                            ],
                            [
                                4500005.82812908,
                                1299038.7113536
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443414"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5000006.06125424,
                                1299038.7113536
                            ],
                            [
                                5083339.43344177,
                                1443376.34594844
                            ],
                            [
                                5250006.17781682,
                                1443376.34594844
                            ],
                            [
                                5333339.55000435,
                                1299038.7113536
                            ],
                            [
                                5250006.17781682,
                                1154701.07675875
                            ],
                            [
                                5083339.43344177,
                                1154701.07675875
                            ],
                            [
                                5000006.06125424,
                                1299038.7113536
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}