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

{
    "features": [
        {
            "properties": {
                "pk": "442787"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2250004.77906584,
                                -4907479.5762247
                            ],
                            [
                                2333338.15125337,
                                -4763141.94162986
                            ],
                            [
                                2500004.89562843,
                                -4763141.94162986
                            ],
                            [
                                2583338.26781595,
                                -4907479.5762247
                            ],
                            [
                                2500004.89562843,
                                -5051817.21081955
                            ],
                            [
                                2333338.15125337,
                                -5051817.21081955
                            ],
                            [
                                2250004.77906584,
                                -4907479.5762247
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442842"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2500004.89562843,
                                -5051817.21081955
                            ],
                            [
                                2583338.26781595,
                                -4907479.5762247
                            ],
                            [
                                2750005.01219101,
                                -4907479.5762247
                            ],
                            [
                                2833338.38437853,
                                -5051817.21081955
                            ],
                            [
                                2750005.01219101,
                                -5196154.84541439
                            ],
                            [
                                2583338.26781595,
                                -5196154.84541439
                            ],
                            [
                                2500004.89562843,
                                -5051817.21081955
                            ]
                        ]
                    ]
                ],
                "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": "442894"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2750005.01219101,
                                -5773505.38379377
                            ],
                            [
                                2833338.38437853,
                                -5629167.74919892
                            ],
                            [
                                3000005.12875359,
                                -5629167.74919892
                            ],
                            [
                                3083338.50094112,
                                -5773505.38379377
                            ],
                            [
                                3000005.12875359,
                                -5917843.01838861
                            ],
                            [
                                2833338.38437853,
                                -5917843.01838861
                            ],
                            [
                                2750005.01219101,
                                -5773505.38379377
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442896"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2750005.01219101,
                                -5196154.84541439
                            ],
                            [
                                2833338.38437853,
                                -5051817.21081955
                            ],
                            [
                                3000005.12875359,
                                -5051817.21081955
                            ],
                            [
                                3083338.50094112,
                                -5196154.84541439
                            ],
                            [
                                3000005.12875359,
                                -5340492.48000924
                            ],
                            [
                                2833338.38437853,
                                -5340492.48000924
                            ],
                            [
                                2750005.01219101,
                                -5196154.84541439
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442897"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2750005.01219101,
                                -4907479.5762247
                            ],
                            [
                                2833338.38437853,
                                -4763141.94162986
                            ],
                            [
                                3000005.12875359,
                                -4763141.94162986
                            ],
                            [
                                3083338.50094112,
                                -4907479.5762247
                            ],
                            [
                                3000005.12875359,
                                -5051817.21081955
                            ],
                            [
                                2833338.38437853,
                                -5051817.21081955
                            ],
                            [
                                2750005.01219101,
                                -4907479.5762247
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442949"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3000005.12875359,
                                -5917843.01838861
                            ],
                            [
                                3083338.50094112,
                                -5773505.38379377
                            ],
                            [
                                3250005.24531617,
                                -5773505.38379377
                            ],
                            [
                                3333338.6175037,
                                -5917843.01838861
                            ],
                            [
                                3250005.24531617,
                                -6062180.65298346
                            ],
                            [
                                3083338.50094112,
                                -6062180.65298346
                            ],
                            [
                                3000005.12875359,
                                -5917843.01838861
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442950"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3000005.12875359,
                                -5629167.74919892
                            ],
                            [
                                3083338.50094112,
                                -5484830.11460408
                            ],
                            [
                                3250005.24531617,
                                -5484830.11460408
                            ],
                            [
                                3333338.6175037,
                                -5629167.74919892
                            ],
                            [
                                3250005.24531617,
                                -5773505.38379377
                            ],
                            [
                                3083338.50094112,
                                -5773505.38379377
                            ],
                            [
                                3000005.12875359,
                                -5629167.74919892
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442951"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3000005.12875359,
                                -5340492.48000924
                            ],
                            [
                                3083338.50094112,
                                -5196154.84541439
                            ],
                            [
                                3250005.24531617,
                                -5196154.84541439
                            ],
                            [
                                3333338.6175037,
                                -5340492.48000924
                            ],
                            [
                                3250005.24531617,
                                -5484830.11460408
                            ],
                            [
                                3083338.50094112,
                                -5484830.11460408
                            ],
                            [
                                3000005.12875359,
                                -5340492.48000924
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442952"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3000005.12875359,
                                -5051817.21081955
                            ],
                            [
                                3083338.50094112,
                                -4907479.5762247
                            ],
                            [
                                3250005.24531617,
                                -4907479.5762247
                            ],
                            [
                                3333338.6175037,
                                -5051817.21081955
                            ],
                            [
                                3250005.24531617,
                                -5196154.84541439
                            ],
                            [
                                3083338.50094112,
                                -5196154.84541439
                            ],
                            [
                                3000005.12875359,
                                -5051817.21081955
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}