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

{
    "features": [
        {
            "properties": {
                "pk": "441604"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -3249997.78531095,
                                2886752.69189689
                            ],
                            [
                                -3166664.41312342,
                                3031090.32649173
                            ],
                            [
                                -2999997.66874837,
                                3031090.32649173
                            ],
                            [
                                -2916664.29656084,
                                2886752.69189689
                            ],
                            [
                                -2999997.66874837,
                                2742415.05730204
                            ],
                            [
                                -3166664.41312342,
                                2742415.05730204
                            ],
                            [
                                -3249997.78531095,
                                2886752.69189689
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441712"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -2749997.55218579,
                                2309402.15351751
                            ],
                            [
                                -2666664.17999826,
                                2453739.78811235
                            ],
                            [
                                -2499997.43562321,
                                2453739.78811235
                            ],
                            [
                                -2416664.06343568,
                                2309402.15351751
                            ],
                            [
                                -2499997.43562321,
                                2165064.51892266
                            ],
                            [
                                -2666664.17999826,
                                2165064.51892266
                            ],
                            [
                                -2749997.55218579,
                                2309402.15351751
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442458"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                750004.079690354,
                                -4618804.30703502
                            ],
                            [
                                833337.451877881,
                                -4474466.67244017
                            ],
                            [
                                1000004.19625294,
                                -4474466.67244017
                            ],
                            [
                                1083337.56844046,
                                -4618804.30703502
                            ],
                            [
                                1000004.19625294,
                                -4763141.94162986
                            ],
                            [
                                833337.451877881,
                                -4763141.94162986
                            ],
                            [
                                750004.079690354,
                                -4618804.30703502
                            ]
                        ]
                    ]
                ],
                "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": "442514"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1000004.19625294,
                                -4474466.67244017
                            ],
                            [
                                1083337.56844046,
                                -4330129.03784533
                            ],
                            [
                                1250004.31281552,
                                -4330129.03784533
                            ],
                            [
                                1333337.68500304,
                                -4474466.67244017
                            ],
                            [
                                1250004.31281552,
                                -4618804.30703502
                            ],
                            [
                                1083337.56844046,
                                -4618804.30703502
                            ],
                            [
                                1000004.19625294,
                                -4474466.67244017
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442735"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2000004.66250326,
                                -4185791.40325048
                            ],
                            [
                                2083338.03469079,
                                -4041453.76865564
                            ],
                            [
                                2250004.77906584,
                                -4041453.76865564
                            ],
                            [
                                2333338.15125337,
                                -4185791.40325048
                            ],
                            [
                                2250004.77906584,
                                -4330129.03784533
                            ],
                            [
                                2083338.03469079,
                                -4330129.03784533
                            ],
                            [
                                2000004.66250326,
                                -4185791.40325048
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442789"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2250004.77906584,
                                -4330129.03784533
                            ],
                            [
                                2333338.15125337,
                                -4185791.40325048
                            ],
                            [
                                2500004.89562843,
                                -4185791.40325048
                            ],
                            [
                                2583338.26781595,
                                -4330129.03784533
                            ],
                            [
                                2500004.89562843,
                                -4474466.67244017
                            ],
                            [
                                2333338.15125337,
                                -4474466.67244017
                            ],
                            [
                                2250004.77906584,
                                -4330129.03784533
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442790"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2250004.77906584,
                                -4041453.76865564
                            ],
                            [
                                2333338.15125337,
                                -3897116.13406079
                            ],
                            [
                                2500004.89562843,
                                -3897116.13406079
                            ],
                            [
                                2583338.26781595,
                                -4041453.76865564
                            ],
                            [
                                2500004.89562843,
                                -4185791.40325048
                            ],
                            [
                                2333338.15125337,
                                -4185791.40325048
                            ],
                            [
                                2250004.77906584,
                                -4041453.76865564
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442843"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2500004.89562843,
                                -4763141.94162986
                            ],
                            [
                                2583338.26781595,
                                -4618804.30703502
                            ],
                            [
                                2750005.01219101,
                                -4618804.30703502
                            ],
                            [
                                2833338.38437853,
                                -4763141.94162986
                            ],
                            [
                                2750005.01219101,
                                -4907479.5762247
                            ],
                            [
                                2583338.26781595,
                                -4907479.5762247
                            ],
                            [
                                2500004.89562843,
                                -4763141.94162986
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442844"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2500004.89562843,
                                -4474466.67244017
                            ],
                            [
                                2583338.26781595,
                                -4330129.03784533
                            ],
                            [
                                2750005.01219101,
                                -4330129.03784533
                            ],
                            [
                                2833338.38437853,
                                -4474466.67244017
                            ],
                            [
                                2750005.01219101,
                                -4618804.30703502
                            ],
                            [
                                2583338.26781595,
                                -4618804.30703502
                            ],
                            [
                                2500004.89562843,
                                -4474466.67244017
                            ]
                        ]
                    ]
                ],
                "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": "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": "442898"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2750005.01219101,
                                -4618804.30703502
                            ],
                            [
                                2833338.38437853,
                                -4474466.67244017
                            ],
                            [
                                3000005.12875359,
                                -4474466.67244017
                            ],
                            [
                                3083338.50094112,
                                -4618804.30703502
                            ],
                            [
                                3000005.12875359,
                                -4763141.94162986
                            ],
                            [
                                2833338.38437853,
                                -4763141.94162986
                            ],
                            [
                                2750005.01219101,
                                -4618804.30703502
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442899"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2750005.01219101,
                                -4330129.03784533
                            ],
                            [
                                2833338.38437853,
                                -4185791.40325048
                            ],
                            [
                                3000005.12875359,
                                -4185791.40325048
                            ],
                            [
                                3083338.50094112,
                                -4330129.03784533
                            ],
                            [
                                3000005.12875359,
                                -4474466.67244017
                            ],
                            [
                                2833338.38437853,
                                -4474466.67244017
                            ],
                            [
                                2750005.01219101,
                                -4330129.03784533
                            ]
                        ]
                    ]
                ],
                "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"
            }
        },
        {
            "properties": {
                "pk": "442954"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3000005.12875359,
                                -4474466.67244017
                            ],
                            [
                                3083338.50094112,
                                -4330129.03784533
                            ],
                            [
                                3250005.24531617,
                                -4330129.03784533
                            ],
                            [
                                3333338.6175037,
                                -4474466.67244017
                            ],
                            [
                                3250005.24531617,
                                -4618804.30703502
                            ],
                            [
                                3083338.50094112,
                                -4618804.30703502
                            ],
                            [
                                3000005.12875359,
                                -4474466.67244017
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442956"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3000005.12875359,
                                -3897116.13406079
                            ],
                            [
                                3083338.50094112,
                                -3752778.49946595
                            ],
                            [
                                3250005.24531617,
                                -3752778.49946595
                            ],
                            [
                                3333338.6175037,
                                -3897116.13406079
                            ],
                            [
                                3250005.24531617,
                                -4041453.76865564
                            ],
                            [
                                3083338.50094112,
                                -4041453.76865564
                            ],
                            [
                                3000005.12875359,
                                -3897116.13406079
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443008"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3250005.24531617,
                                -4618804.30703502
                            ],
                            [
                                3333338.6175037,
                                -4474466.67244017
                            ],
                            [
                                3500005.36187875,
                                -4474466.67244017
                            ],
                            [
                                3583338.73406628,
                                -4618804.30703502
                            ],
                            [
                                3500005.36187875,
                                -4763141.94162986
                            ],
                            [
                                3333338.6175037,
                                -4763141.94162986
                            ],
                            [
                                3250005.24531617,
                                -4618804.30703502
                            ]
                        ]
                    ]
                ],
                "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": "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"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}