Process queries for HexGrid objects. Will be deprecated in future version :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=4334731
HTTP 200 OK
Allow: GET, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "type": "FeatureCollection",
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "features": [
        {
            "type": "Feature",
            "properties": {
                "pk": "441649"
            },
            "geometry": {
                "type": "MultiPolygon",
                "coordinates": [
                    [
                        [
                            [
                                -2999997.66874837,
                                -144337.634594844
                            ],
                            [
                                -2916664.29656084,
                                0.0
                            ],
                            [
                                -2749997.55218579,
                                0.0
                            ],
                            [
                                -2666664.17999826,
                                -144337.634594844
                            ],
                            [
                                -2749997.55218579,
                                -288675.269189688
                            ],
                            [
                                -2916664.29656084,
                                -288675.269189688
                            ],
                            [
                                -2999997.66874837,
                                -144337.634594844
                            ]
                        ]
                    ]
                ]
            }
        }
    ]
}