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

{
    "features": [
        {
            "properties": {
                "pk": "442405"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                500003.963127773,
                                -4185791.40325048
                            ],
                            [
                                583337.3353153,
                                -4041453.76865564
                            ],
                            [
                                750004.079690354,
                                -4041453.76865564
                            ],
                            [
                                833337.451877881,
                                -4185791.40325048
                            ],
                            [
                                750004.079690354,
                                -4330129.03784533
                            ],
                            [
                                583337.3353153,
                                -4330129.03784533
                            ],
                            [
                                500003.963127773,
                                -4185791.40325048
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442459"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                750004.079690354,
                                -4330129.03784533
                            ],
                            [
                                833337.451877881,
                                -4185791.40325048
                            ],
                            [
                                1000004.19625294,
                                -4185791.40325048
                            ],
                            [
                                1083337.56844046,
                                -4330129.03784533
                            ],
                            [
                                1000004.19625294,
                                -4474466.67244017
                            ],
                            [
                                833337.451877881,
                                -4474466.67244017
                            ],
                            [
                                750004.079690354,
                                -4330129.03784533
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442513"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1000004.19625294,
                                -4763141.94162986
                            ],
                            [
                                1083337.56844046,
                                -4618804.30703502
                            ],
                            [
                                1250004.31281552,
                                -4618804.30703502
                            ],
                            [
                                1333337.68500304,
                                -4763141.94162986
                            ],
                            [
                                1250004.31281552,
                                -4907479.5762247
                            ],
                            [
                                1083337.56844046,
                                -4907479.5762247
                            ],
                            [
                                1000004.19625294,
                                -4763141.94162986
                            ]
                        ]
                    ]
                ],
                "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": "442572"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1250004.31281552,
                                -3464103.23027626
                            ],
                            [
                                1333337.68500304,
                                -3319765.59568142
                            ],
                            [
                                1500004.4293781,
                                -3319765.59568142
                            ],
                            [
                                1583337.80156563,
                                -3464103.23027626
                            ],
                            [
                                1500004.4293781,
                                -3608440.86487111
                            ],
                            [
                                1333337.68500304,
                                -3608440.86487111
                            ],
                            [
                                1250004.31281552,
                                -3464103.23027626
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442730"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2000004.66250326,
                                -5629167.74919892
                            ],
                            [
                                2083338.03469079,
                                -5484830.11460408
                            ],
                            [
                                2250004.77906584,
                                -5484830.11460408
                            ],
                            [
                                2333338.15125337,
                                -5629167.74919892
                            ],
                            [
                                2250004.77906584,
                                -5773505.38379377
                            ],
                            [
                                2083338.03469079,
                                -5773505.38379377
                            ],
                            [
                                2000004.66250326,
                                -5629167.74919892
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442731"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2000004.66250326,
                                -5340492.48000924
                            ],
                            [
                                2083338.03469079,
                                -5196154.84541439
                            ],
                            [
                                2250004.77906584,
                                -5196154.84541439
                            ],
                            [
                                2333338.15125337,
                                -5340492.48000924
                            ],
                            [
                                2250004.77906584,
                                -5484830.11460408
                            ],
                            [
                                2083338.03469079,
                                -5484830.11460408
                            ],
                            [
                                2000004.66250326,
                                -5340492.48000924
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442738"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2000004.66250326,
                                -3319765.59568142
                            ],
                            [
                                2083338.03469079,
                                -3175427.96108657
                            ],
                            [
                                2250004.77906584,
                                -3175427.96108657
                            ],
                            [
                                2333338.15125337,
                                -3319765.59568142
                            ],
                            [
                                2250004.77906584,
                                -3464103.23027626
                            ],
                            [
                                2083338.03469079,
                                -3464103.23027626
                            ],
                            [
                                2000004.66250326,
                                -3319765.59568142
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442785"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2250004.77906584,
                                -5484830.11460408
                            ],
                            [
                                2333338.15125337,
                                -5340492.48000924
                            ],
                            [
                                2500004.89562843,
                                -5340492.48000924
                            ],
                            [
                                2583338.26781595,
                                -5484830.11460408
                            ],
                            [
                                2500004.89562843,
                                -5629167.74919892
                            ],
                            [
                                2333338.15125337,
                                -5629167.74919892
                            ],
                            [
                                2250004.77906584,
                                -5484830.11460408
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442786"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2250004.77906584,
                                -5196154.84541439
                            ],
                            [
                                2333338.15125337,
                                -5051817.21081955
                            ],
                            [
                                2500004.89562843,
                                -5051817.21081955
                            ],
                            [
                                2583338.26781595,
                                -5196154.84541439
                            ],
                            [
                                2500004.89562843,
                                -5340492.48000924
                            ],
                            [
                                2333338.15125337,
                                -5340492.48000924
                            ],
                            [
                                2250004.77906584,
                                -5196154.84541439
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442839"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2500004.89562843,
                                -5917843.01838861
                            ],
                            [
                                2583338.26781595,
                                -5773505.38379377
                            ],
                            [
                                2750005.01219101,
                                -5773505.38379377
                            ],
                            [
                                2833338.38437853,
                                -5917843.01838861
                            ],
                            [
                                2750005.01219101,
                                -6062180.65298346
                            ],
                            [
                                2583338.26781595,
                                -6062180.65298346
                            ],
                            [
                                2500004.89562843,
                                -5917843.01838861
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442840"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2500004.89562843,
                                -5629167.74919892
                            ],
                            [
                                2583338.26781595,
                                -5484830.11460408
                            ],
                            [
                                2750005.01219101,
                                -5484830.11460408
                            ],
                            [
                                2833338.38437853,
                                -5629167.74919892
                            ],
                            [
                                2750005.01219101,
                                -5773505.38379377
                            ],
                            [
                                2583338.26781595,
                                -5773505.38379377
                            ],
                            [
                                2500004.89562843,
                                -5629167.74919892
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442841"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2500004.89562843,
                                -5340492.48000924
                            ],
                            [
                                2583338.26781595,
                                -5196154.84541439
                            ],
                            [
                                2750005.01219101,
                                -5196154.84541439
                            ],
                            [
                                2833338.38437853,
                                -5340492.48000924
                            ],
                            [
                                2750005.01219101,
                                -5484830.11460408
                            ],
                            [
                                2583338.26781595,
                                -5484830.11460408
                            ],
                            [
                                2500004.89562843,
                                -5340492.48000924
                            ]
                        ]
                    ]
                ],
                "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": "442893"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2750005.01219101,
                                -6062180.65298346
                            ],
                            [
                                2833338.38437853,
                                -5917843.01838861
                            ],
                            [
                                3000005.12875359,
                                -5917843.01838861
                            ],
                            [
                                3083338.50094112,
                                -6062180.65298346
                            ],
                            [
                                3000005.12875359,
                                -6206518.2875783
                            ],
                            [
                                2833338.38437853,
                                -6206518.2875783
                            ],
                            [
                                2750005.01219101,
                                -6062180.65298346
                            ]
                        ]
                    ]
                ],
                "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": "442895"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2750005.01219101,
                                -5484830.11460408
                            ],
                            [
                                2833338.38437853,
                                -5340492.48000924
                            ],
                            [
                                3000005.12875359,
                                -5340492.48000924
                            ],
                            [
                                3083338.50094112,
                                -5484830.11460408
                            ],
                            [
                                3000005.12875359,
                                -5629167.74919892
                            ],
                            [
                                2833338.38437853,
                                -5629167.74919892
                            ],
                            [
                                2750005.01219101,
                                -5484830.11460408
                            ]
                        ]
                    ]
                ],
                "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": "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"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}