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

{
    "features": [
        {
            "properties": {
                "pk": "440744"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -6999999.53374967,
                                -7361219.36433706
                            ],
                            [
                                -6916666.16156215,
                                -7216881.72974221
                            ],
                            [
                                -6749999.41718709,
                                -7216881.72974221
                            ],
                            [
                                -6666666.04499956,
                                -7361219.36433706
                            ],
                            [
                                -6749999.41718709,
                                -7505556.9989319
                            ],
                            [
                                -6916666.16156215,
                                -7505556.9989319
                            ],
                            [
                                -6999999.53374967,
                                -7361219.36433706
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "440910"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -6249999.18406193,
                                -6928206.46055252
                            ],
                            [
                                -6166665.8118744,
                                -6783868.82595768
                            ],
                            [
                                -5999999.06749935,
                                -6783868.82595768
                            ],
                            [
                                -5916665.69531182,
                                -6928206.46055252
                            ],
                            [
                                -5999999.06749935,
                                -7072544.09514737
                            ],
                            [
                                -6166665.8118744,
                                -7072544.09514737
                            ],
                            [
                                -6249999.18406193,
                                -6928206.46055252
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441018"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -5749998.95093677,
                                -7505556.9989319
                            ],
                            [
                                -5666665.57874924,
                                -7361219.36433706
                            ],
                            [
                                -5499998.83437418,
                                -7361219.36433706
                            ],
                            [
                                -5416665.46218666,
                                -7505556.9989319
                            ],
                            [
                                -5499998.83437418,
                                -7649894.63352674
                            ],
                            [
                                -5666665.57874924,
                                -7649894.63352674
                            ],
                            [
                                -5749998.95093677,
                                -7505556.9989319
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441020"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -5749998.95093677,
                                -6928206.46055252
                            ],
                            [
                                -5666665.57874924,
                                -6783868.82595768
                            ],
                            [
                                -5499998.83437418,
                                -6783868.82595768
                            ],
                            [
                                -5416665.46218666,
                                -6928206.46055252
                            ],
                            [
                                -5499998.83437418,
                                -7072544.09514737
                            ],
                            [
                                -5666665.57874924,
                                -7072544.09514737
                            ],
                            [
                                -5749998.95093677,
                                -6928206.46055252
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441024"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -5749998.95093677,
                                -5773505.38379377
                            ],
                            [
                                -5666665.57874924,
                                -5629167.74919892
                            ],
                            [
                                -5499998.83437418,
                                -5629167.74919892
                            ],
                            [
                                -5416665.46218666,
                                -5773505.38379377
                            ],
                            [
                                -5499998.83437418,
                                -5917843.01838861
                            ],
                            [
                                -5666665.57874924,
                                -5917843.01838861
                            ],
                            [
                                -5749998.95093677,
                                -5773505.38379377
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441073"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -5499998.83437418,
                                -7649894.63352674
                            ],
                            [
                                -5416665.46218666,
                                -7505556.9989319
                            ],
                            [
                                -5249998.7178116,
                                -7505556.9989319
                            ],
                            [
                                -5166665.34562408,
                                -7649894.63352674
                            ],
                            [
                                -5249998.7178116,
                                -7794232.26812159
                            ],
                            [
                                -5416665.46218666,
                                -7794232.26812159
                            ],
                            [
                                -5499998.83437418,
                                -7649894.63352674
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441074"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -5499998.83437418,
                                -7361219.36433706
                            ],
                            [
                                -5416665.46218666,
                                -7216881.72974221
                            ],
                            [
                                -5249998.7178116,
                                -7216881.72974221
                            ],
                            [
                                -5166665.34562408,
                                -7361219.36433706
                            ],
                            [
                                -5249998.7178116,
                                -7505556.9989319
                            ],
                            [
                                -5416665.46218666,
                                -7505556.9989319
                            ],
                            [
                                -5499998.83437418,
                                -7361219.36433706
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441128"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -5249998.7178116,
                                -7505556.9989319
                            ],
                            [
                                -5166665.34562408,
                                -7361219.36433706
                            ],
                            [
                                -4999998.60124902,
                                -7361219.36433706
                            ],
                            [
                                -4916665.22906149,
                                -7505556.9989319
                            ],
                            [
                                -4999998.60124902,
                                -7649894.63352674
                            ],
                            [
                                -5166665.34562408,
                                -7649894.63352674
                            ],
                            [
                                -5249998.7178116,
                                -7505556.9989319
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441164"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -5249998.7178116,
                                2886752.69189689
                            ],
                            [
                                -5166665.34562408,
                                3031090.32649173
                            ],
                            [
                                -4999998.60124902,
                                3031090.32649173
                            ],
                            [
                                -4916665.22906149,
                                2886752.69189689
                            ],
                            [
                                -4999998.60124902,
                                2742415.05730204
                            ],
                            [
                                -5166665.34562408,
                                2742415.05730204
                            ],
                            [
                                -5249998.7178116,
                                2886752.69189689
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441183"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4999998.60124902,
                                -7649894.63352674
                            ],
                            [
                                -4916665.22906149,
                                -7505556.9989319
                            ],
                            [
                                -4749998.48468644,
                                -7505556.9989319
                            ],
                            [
                                -4666665.11249891,
                                -7649894.63352674
                            ],
                            [
                                -4749998.48468644,
                                -7794232.26812159
                            ],
                            [
                                -4916665.22906149,
                                -7794232.26812159
                            ],
                            [
                                -4999998.60124902,
                                -7649894.63352674
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "441221"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -4999998.60124902,
                                3319765.59568142
                            ],
                            [
                                -4916665.22906149,
                                3464103.23027626
                            ],
                            [
                                -4749998.48468644,
                                3464103.23027626
                            ],
                            [
                                -4666665.11249891,
                                3319765.59568142
                            ],
                            [
                                -4749998.48468644,
                                3175427.96108657
                            ],
                            [
                                -4916665.22906149,
                                3175427.96108657
                            ],
                            [
                                -4999998.60124902,
                                3319765.59568142
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442723"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2000004.66250326,
                                -7649894.63352674
                            ],
                            [
                                2083338.03469079,
                                -7505556.9989319
                            ],
                            [
                                2250004.77906584,
                                -7505556.9989319
                            ],
                            [
                                2333338.15125337,
                                -7649894.63352674
                            ],
                            [
                                2250004.77906584,
                                -7794232.26812159
                            ],
                            [
                                2083338.03469079,
                                -7794232.26812159
                            ],
                            [
                                2000004.66250326,
                                -7649894.63352674
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443431"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5000006.06125424,
                                6206518.2875783
                            ],
                            [
                                5083339.43344177,
                                6350855.92217315
                            ],
                            [
                                5250006.17781682,
                                6350855.92217315
                            ],
                            [
                                5333339.55000435,
                                6206518.2875783
                            ],
                            [
                                5250006.17781682,
                                6062180.65298346
                            ],
                            [
                                5083339.43344177,
                                6062180.65298346
                            ],
                            [
                                5000006.06125424,
                                6206518.2875783
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443485"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5250006.17781682,
                                6062180.65298346
                            ],
                            [
                                5333339.55000435,
                                6206518.2875783
                            ],
                            [
                                5500006.2943794,
                                6206518.2875783
                            ],
                            [
                                5583339.66656693,
                                6062180.65298346
                            ],
                            [
                                5500006.2943794,
                                5917843.01838861
                            ],
                            [
                                5333339.55000435,
                                5917843.01838861
                            ],
                            [
                                5250006.17781682,
                                6062180.65298346
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443486"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5250006.17781682,
                                6350855.92217315
                            ],
                            [
                                5333339.55000435,
                                6495193.55676799
                            ],
                            [
                                5500006.2943794,
                                6495193.55676799
                            ],
                            [
                                5583339.66656693,
                                6350855.92217315
                            ],
                            [
                                5500006.2943794,
                                6206518.2875783
                            ],
                            [
                                5333339.55000435,
                                6206518.2875783
                            ],
                            [
                                5250006.17781682,
                                6350855.92217315
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443541"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5500006.2943794,
                                6206518.2875783
                            ],
                            [
                                5583339.66656693,
                                6350855.92217315
                            ],
                            [
                                5750006.41094199,
                                6350855.92217315
                            ],
                            [
                                5833339.78312951,
                                6206518.2875783
                            ],
                            [
                                5750006.41094199,
                                6062180.65298346
                            ],
                            [
                                5583339.66656693,
                                6062180.65298346
                            ],
                            [
                                5500006.2943794,
                                6206518.2875783
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443542"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5500006.2943794,
                                6495193.55676799
                            ],
                            [
                                5583339.66656693,
                                6639531.19136284
                            ],
                            [
                                5750006.41094199,
                                6639531.19136284
                            ],
                            [
                                5833339.78312951,
                                6495193.55676799
                            ],
                            [
                                5750006.41094199,
                                6350855.92217315
                            ],
                            [
                                5583339.66656693,
                                6350855.92217315
                            ],
                            [
                                5500006.2943794,
                                6495193.55676799
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443597"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5750006.41094199,
                                6639531.19136284
                            ],
                            [
                                5833339.78312951,
                                6783868.82595768
                            ],
                            [
                                6000006.52750457,
                                6783868.82595768
                            ],
                            [
                                6083339.89969209,
                                6639531.19136284
                            ],
                            [
                                6000006.52750457,
                                6495193.55676799
                            ],
                            [
                                5833339.78312951,
                                6495193.55676799
                            ],
                            [
                                5750006.41094199,
                                6639531.19136284
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443598"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                5750006.41094199,
                                6928206.46055252
                            ],
                            [
                                5833339.78312951,
                                7072544.09514737
                            ],
                            [
                                6000006.52750457,
                                7072544.09514737
                            ],
                            [
                                6083339.89969209,
                                6928206.46055252
                            ],
                            [
                                6000006.52750457,
                                6783868.82595768
                            ],
                            [
                                5833339.78312951,
                                6783868.82595768
                            ],
                            [
                                5750006.41094199,
                                6928206.46055252
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443652"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                6000006.52750457,
                                6495193.55676799
                            ],
                            [
                                6083339.89969209,
                                6639531.19136284
                            ],
                            [
                                6250006.64406715,
                                6639531.19136284
                            ],
                            [
                                6333340.01625468,
                                6495193.55676799
                            ],
                            [
                                6250006.64406715,
                                6350855.92217315
                            ],
                            [
                                6083339.89969209,
                                6350855.92217315
                            ],
                            [
                                6000006.52750457,
                                6495193.55676799
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443653"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                6000006.52750457,
                                6783868.82595768
                            ],
                            [
                                6083339.89969209,
                                6928206.46055252
                            ],
                            [
                                6250006.64406715,
                                6928206.46055252
                            ],
                            [
                                6333340.01625468,
                                6783868.82595768
                            ],
                            [
                                6250006.64406715,
                                6639531.19136284
                            ],
                            [
                                6083339.89969209,
                                6639531.19136284
                            ],
                            [
                                6000006.52750457,
                                6783868.82595768
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443707"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                6250006.64406715,
                                6639531.19136284
                            ],
                            [
                                6333340.01625468,
                                6783868.82595768
                            ],
                            [
                                6500006.76062973,
                                6783868.82595768
                            ],
                            [
                                6583340.13281726,
                                6639531.19136284
                            ],
                            [
                                6500006.76062973,
                                6495193.55676799
                            ],
                            [
                                6333340.01625468,
                                6495193.55676799
                            ],
                            [
                                6250006.64406715,
                                6639531.19136284
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443708"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                6250006.64406715,
                                6928206.46055252
                            ],
                            [
                                6333340.01625468,
                                7072544.09514737
                            ],
                            [
                                6500006.76062973,
                                7072544.09514737
                            ],
                            [
                                6583340.13281726,
                                6928206.46055252
                            ],
                            [
                                6500006.76062973,
                                6783868.82595768
                            ],
                            [
                                6333340.01625468,
                                6783868.82595768
                            ],
                            [
                                6250006.64406715,
                                6928206.46055252
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443810"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                6750006.87719231,
                                4618804.30703502
                            ],
                            [
                                6833340.24937984,
                                4763141.94162986
                            ],
                            [
                                7000006.99375489,
                                4763141.94162986
                            ],
                            [
                                7083340.36594242,
                                4618804.30703502
                            ],
                            [
                                7000006.99375489,
                                4474466.67244017
                            ],
                            [
                                6833340.24937984,
                                4474466.67244017
                            ],
                            [
                                6750006.87719231,
                                4618804.30703502
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443811"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                6750006.87719231,
                                4907479.57622471
                            ],
                            [
                                6833340.24937984,
                                5051817.21081955
                            ],
                            [
                                7000006.99375489,
                                5051817.21081955
                            ],
                            [
                                7083340.36594242,
                                4907479.57622471
                            ],
                            [
                                7000006.99375489,
                                4763141.94162986
                            ],
                            [
                                6833340.24937984,
                                4763141.94162986
                            ],
                            [
                                6750006.87719231,
                                4907479.57622471
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443818"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                6750006.87719231,
                                6928206.46055252
                            ],
                            [
                                6833340.24937984,
                                7072544.09514737
                            ],
                            [
                                7000006.99375489,
                                7072544.09514737
                            ],
                            [
                                7083340.36594242,
                                6928206.46055252
                            ],
                            [
                                7000006.99375489,
                                6783868.82595768
                            ],
                            [
                                6833340.24937984,
                                6783868.82595768
                            ],
                            [
                                6750006.87719231,
                                6928206.46055252
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443865"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                7000006.99375489,
                                4474466.67244017
                            ],
                            [
                                7083340.36594242,
                                4618804.30703502
                            ],
                            [
                                7250007.11031748,
                                4618804.30703502
                            ],
                            [
                                7333340.482505,
                                4474466.67244017
                            ],
                            [
                                7250007.11031748,
                                4330129.03784533
                            ],
                            [
                                7083340.36594242,
                                4330129.03784533
                            ],
                            [
                                7000006.99375489,
                                4474466.67244017
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443866"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                7000006.99375489,
                                4763141.94162986
                            ],
                            [
                                7083340.36594242,
                                4907479.57622471
                            ],
                            [
                                7250007.11031748,
                                4907479.57622471
                            ],
                            [
                                7333340.482505,
                                4763141.94162986
                            ],
                            [
                                7250007.11031748,
                                4618804.30703502
                            ],
                            [
                                7083340.36594242,
                                4618804.30703502
                            ],
                            [
                                7000006.99375489,
                                4763141.94162986
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443867"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                7000006.99375489,
                                5051817.21081955
                            ],
                            [
                                7083340.36594242,
                                5196154.84541439
                            ],
                            [
                                7250007.11031748,
                                5196154.84541439
                            ],
                            [
                                7333340.482505,
                                5051817.21081955
                            ],
                            [
                                7250007.11031748,
                                4907479.57622471
                            ],
                            [
                                7083340.36594242,
                                4907479.57622471
                            ],
                            [
                                7000006.99375489,
                                5051817.21081955
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "443873"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                7000006.99375489,
                                6783868.82595768
                            ],
                            [
                                7083340.36594242,
                                6928206.46055252
                            ],
                            [
                                7250007.11031748,
                                6928206.46055252
                            ],
                            [
                                7333340.482505,
                                6783868.82595768
                            ],
                            [
                                7250007.11031748,
                                6639531.19136284
                            ],
                            [
                                7083340.36594242,
                                6639531.19136284
                            ],
                            [
                                7000006.99375489,
                                6783868.82595768
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}