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

{
    "features": [
        {
            "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": "443118"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3750005.47844133,
                                -4618804.30703502
                            ],
                            [
                                3833338.85062886,
                                -4474466.67244017
                            ],
                            [
                                4000005.59500391,
                                -4474466.67244017
                            ],
                            [
                                4083338.96719144,
                                -4618804.30703502
                            ],
                            [
                                4000005.59500391,
                                -4763141.94162986
                            ],
                            [
                                3833338.85062886,
                                -4763141.94162986
                            ],
                            [
                                3750005.47844133,
                                -4618804.30703502
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443173"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4000005.59500391,
                                -4763141.94162986
                            ],
                            [
                                4083338.96719144,
                                -4618804.30703502
                            ],
                            [
                                4250005.7115665,
                                -4618804.30703502
                            ],
                            [
                                4333339.08375402,
                                -4763141.94162986
                            ],
                            [
                                4250005.7115665,
                                -4907479.5762247
                            ],
                            [
                                4083338.96719144,
                                -4907479.5762247
                            ],
                            [
                                4000005.59500391,
                                -4763141.94162986
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443174"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4000005.59500391,
                                -4474466.67244017
                            ],
                            [
                                4083338.96719144,
                                -4330129.03784533
                            ],
                            [
                                4250005.7115665,
                                -4330129.03784533
                            ],
                            [
                                4333339.08375402,
                                -4474466.67244017
                            ],
                            [
                                4250005.7115665,
                                -4618804.30703502
                            ],
                            [
                                4083338.96719144,
                                -4618804.30703502
                            ],
                            [
                                4000005.59500391,
                                -4474466.67244017
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443227"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4250005.7115665,
                                -4907479.5762247
                            ],
                            [
                                4333339.08375402,
                                -4763141.94162986
                            ],
                            [
                                4500005.82812908,
                                -4763141.94162986
                            ],
                            [
                                4583339.2003166,
                                -4907479.5762247
                            ],
                            [
                                4500005.82812908,
                                -5051817.21081955
                            ],
                            [
                                4333339.08375402,
                                -5051817.21081955
                            ],
                            [
                                4250005.7115665,
                                -4907479.5762247
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443228"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4250005.7115665,
                                -4618804.30703502
                            ],
                            [
                                4333339.08375402,
                                -4474466.67244017
                            ],
                            [
                                4500005.82812908,
                                -4474466.67244017
                            ],
                            [
                                4583339.2003166,
                                -4618804.30703502
                            ],
                            [
                                4500005.82812908,
                                -4763141.94162986
                            ],
                            [
                                4333339.08375402,
                                -4763141.94162986
                            ],
                            [
                                4250005.7115665,
                                -4618804.30703502
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443283"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4500005.82812908,
                                -4763141.94162986
                            ],
                            [
                                4583339.2003166,
                                -4618804.30703502
                            ],
                            [
                                4750005.94469166,
                                -4618804.30703502
                            ],
                            [
                                4833339.31687919,
                                -4763141.94162986
                            ],
                            [
                                4750005.94469166,
                                -4907479.5762247
                            ],
                            [
                                4583339.2003166,
                                -4907479.5762247
                            ],
                            [
                                4500005.82812908,
                                -4763141.94162986
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443284"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4500005.82812908,
                                -4474466.67244017
                            ],
                            [
                                4583339.2003166,
                                -4330129.03784533
                            ],
                            [
                                4750005.94469166,
                                -4330129.03784533
                            ],
                            [
                                4833339.31687919,
                                -4474466.67244017
                            ],
                            [
                                4750005.94469166,
                                -4618804.30703502
                            ],
                            [
                                4583339.2003166,
                                -4618804.30703502
                            ],
                            [
                                4500005.82812908,
                                -4474466.67244017
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443338"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4750005.94469166,
                                -4618804.30703502
                            ],
                            [
                                4833339.31687919,
                                -4474466.67244017
                            ],
                            [
                                5000006.06125424,
                                -4474466.67244017
                            ],
                            [
                                5083339.43344177,
                                -4618804.30703502
                            ],
                            [
                                5000006.06125424,
                                -4763141.94162986
                            ],
                            [
                                4833339.31687919,
                                -4763141.94162986
                            ],
                            [
                                4750005.94469166,
                                -4618804.30703502
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443339"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                4750005.94469166,
                                -4330129.03784533
                            ],
                            [
                                4833339.31687919,
                                -4185791.40325048
                            ],
                            [
                                5000006.06125424,
                                -4185791.40325048
                            ],
                            [
                                5083339.43344177,
                                -4330129.03784533
                            ],
                            [
                                5000006.06125424,
                                -4474466.67244017
                            ],
                            [
                                4833339.31687919,
                                -4474466.67244017
                            ],
                            [
                                4750005.94469166,
                                -4330129.03784533
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443394"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5000006.06125424,
                                -4474466.67244017
                            ],
                            [
                                5083339.43344177,
                                -4330129.03784533
                            ],
                            [
                                5250006.17781682,
                                -4330129.03784533
                            ],
                            [
                                5333339.55000435,
                                -4474466.67244017
                            ],
                            [
                                5250006.17781682,
                                -4618804.30703502
                            ],
                            [
                                5083339.43344177,
                                -4618804.30703502
                            ],
                            [
                                5000006.06125424,
                                -4474466.67244017
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443451"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5250006.17781682,
                                -3752778.49946595
                            ],
                            [
                                5333339.55000435,
                                -3608440.86487111
                            ],
                            [
                                5500006.2943794,
                                -3608440.86487111
                            ],
                            [
                                5583339.66656693,
                                -3752778.49946595
                            ],
                            [
                                5500006.2943794,
                                -3897116.13406079
                            ],
                            [
                                5333339.55000435,
                                -3897116.13406079
                            ],
                            [
                                5250006.17781682,
                                -3752778.49946595
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443506"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5500006.2943794,
                                -3897116.13406079
                            ],
                            [
                                5583339.66656693,
                                -3752778.49946595
                            ],
                            [
                                5750006.41094199,
                                -3752778.49946595
                            ],
                            [
                                5833339.78312951,
                                -3897116.13406079
                            ],
                            [
                                5750006.41094199,
                                -4041453.76865564
                            ],
                            [
                                5583339.66656693,
                                -4041453.76865564
                            ],
                            [
                                5500006.2943794,
                                -3897116.13406079
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443507"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5500006.2943794,
                                -3608440.86487111
                            ],
                            [
                                5583339.66656693,
                                -3464103.23027626
                            ],
                            [
                                5750006.41094199,
                                -3464103.23027626
                            ],
                            [
                                5833339.78312951,
                                -3608440.86487111
                            ],
                            [
                                5750006.41094199,
                                -3752778.49946595
                            ],
                            [
                                5583339.66656693,
                                -3752778.49946595
                            ],
                            [
                                5500006.2943794,
                                -3608440.86487111
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443508"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5500006.2943794,
                                -3319765.59568142
                            ],
                            [
                                5583339.66656693,
                                -3175427.96108657
                            ],
                            [
                                5750006.41094199,
                                -3175427.96108657
                            ],
                            [
                                5833339.78312951,
                                -3319765.59568142
                            ],
                            [
                                5750006.41094199,
                                -3464103.23027626
                            ],
                            [
                                5583339.66656693,
                                -3464103.23027626
                            ],
                            [
                                5500006.2943794,
                                -3319765.59568142
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443509"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5500006.2943794,
                                -3031090.32649173
                            ],
                            [
                                5583339.66656693,
                                -2886752.69189688
                            ],
                            [
                                5750006.41094199,
                                -2886752.69189688
                            ],
                            [
                                5833339.78312951,
                                -3031090.32649173
                            ],
                            [
                                5750006.41094199,
                                -3175427.96108657
                            ],
                            [
                                5583339.66656693,
                                -3175427.96108657
                            ],
                            [
                                5500006.2943794,
                                -3031090.32649173
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}