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

{
    "features": [
        {
            "properties": {
                "pk": "442264"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                -249996.386559972,
                                2886752.69189689
                            ],
                            [
                                -166663.014372444,
                                3031090.32649173
                            ],
                            [
                                3.73000261001289,
                                3031090.32649173
                            ],
                            [
                                83337.1021901372,
                                2886752.69189689
                            ],
                            [
                                3.73000261001289,
                                2742415.05730204
                            ],
                            [
                                -166663.014372444,
                                2742415.05730204
                            ],
                            [
                                -249996.386559972,
                                2886752.69189689
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442297"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3.73000261001289,
                                -3608440.86487111
                            ],
                            [
                                83337.1021901372,
                                -3464103.23027626
                            ],
                            [
                                250003.846565192,
                                -3464103.23027626
                            ],
                            [
                                333337.218752719,
                                -3608440.86487111
                            ],
                            [
                                250003.846565192,
                                -3752778.49946595
                            ],
                            [
                                83337.1021901372,
                                -3752778.49946595
                            ],
                            [
                                3.73000261001289,
                                -3608440.86487111
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442298"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3.73000261001289,
                                -3319765.59568142
                            ],
                            [
                                83337.1021901372,
                                -3175427.96108657
                            ],
                            [
                                250003.846565192,
                                -3175427.96108657
                            ],
                            [
                                333337.218752719,
                                -3319765.59568142
                            ],
                            [
                                250003.846565192,
                                -3464103.23027626
                            ],
                            [
                                83337.1021901372,
                                -3464103.23027626
                            ],
                            [
                                3.73000261001289,
                                -3319765.59568142
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442299"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3.73000261001289,
                                -3031090.32649173
                            ],
                            [
                                83337.1021901372,
                                -2886752.69189688
                            ],
                            [
                                250003.846565192,
                                -2886752.69189688
                            ],
                            [
                                333337.218752719,
                                -3031090.32649173
                            ],
                            [
                                250003.846565192,
                                -3175427.96108657
                            ],
                            [
                                83337.1021901372,
                                -3175427.96108657
                            ],
                            [
                                3.73000261001289,
                                -3031090.32649173
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442300"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3.73000261001289,
                                -2742415.05730204
                            ],
                            [
                                83337.1021901372,
                                -2598077.4227072
                            ],
                            [
                                250003.846565192,
                                -2598077.4227072
                            ],
                            [
                                333337.218752719,
                                -2742415.05730204
                            ],
                            [
                                250003.846565192,
                                -2886752.69189688
                            ],
                            [
                                83337.1021901372,
                                -2886752.69189688
                            ],
                            [
                                3.73000261001289,
                                -2742415.05730204
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442350"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                250003.846565192,
                                -4041453.76865564
                            ],
                            [
                                333337.218752719,
                                -3897116.13406079
                            ],
                            [
                                500003.963127773,
                                -3897116.13406079
                            ],
                            [
                                583337.3353153,
                                -4041453.76865564
                            ],
                            [
                                500003.963127773,
                                -4185791.40325048
                            ],
                            [
                                333337.218752719,
                                -4185791.40325048
                            ],
                            [
                                250003.846565192,
                                -4041453.76865564
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442351"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                250003.846565192,
                                -3752778.49946595
                            ],
                            [
                                333337.218752719,
                                -3608440.86487111
                            ],
                            [
                                500003.963127773,
                                -3608440.86487111
                            ],
                            [
                                583337.3353153,
                                -3752778.49946595
                            ],
                            [
                                500003.963127773,
                                -3897116.13406079
                            ],
                            [
                                333337.218752719,
                                -3897116.13406079
                            ],
                            [
                                250003.846565192,
                                -3752778.49946595
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442352"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                250003.846565192,
                                -3464103.23027626
                            ],
                            [
                                333337.218752719,
                                -3319765.59568142
                            ],
                            [
                                500003.963127773,
                                -3319765.59568142
                            ],
                            [
                                583337.3353153,
                                -3464103.23027626
                            ],
                            [
                                500003.963127773,
                                -3608440.86487111
                            ],
                            [
                                333337.218752719,
                                -3608440.86487111
                            ],
                            [
                                250003.846565192,
                                -3464103.23027626
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442577"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1250004.31281552,
                                -2020726.88432782
                            ],
                            [
                                1333337.68500304,
                                -1876389.24973297
                            ],
                            [
                                1500004.4293781,
                                -1876389.24973297
                            ],
                            [
                                1583337.80156563,
                                -2020726.88432782
                            ],
                            [
                                1500004.4293781,
                                -2165064.51892266
                            ],
                            [
                                1333337.68500304,
                                -2165064.51892266
                            ],
                            [
                                1250004.31281552,
                                -2020726.88432782
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442629"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1500004.4293781,
                                -3031090.32649173
                            ],
                            [
                                1583337.80156563,
                                -2886752.69189688
                            ],
                            [
                                1750004.54594068,
                                -2886752.69189688
                            ],
                            [
                                1833337.91812821,
                                -3031090.32649173
                            ],
                            [
                                1750004.54594068,
                                -3175427.96108657
                            ],
                            [
                                1583337.80156563,
                                -3175427.96108657
                            ],
                            [
                                1500004.4293781,
                                -3031090.32649173
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442630"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1500004.4293781,
                                -2742415.05730204
                            ],
                            [
                                1583337.80156563,
                                -2598077.4227072
                            ],
                            [
                                1750004.54594068,
                                -2598077.4227072
                            ],
                            [
                                1833337.91812821,
                                -2742415.05730204
                            ],
                            [
                                1750004.54594068,
                                -2886752.69189688
                            ],
                            [
                                1583337.80156563,
                                -2886752.69189688
                            ],
                            [
                                1500004.4293781,
                                -2742415.05730204
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442632"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1500004.4293781,
                                -2165064.51892266
                            ],
                            [
                                1583337.80156563,
                                -2020726.88432782
                            ],
                            [
                                1750004.54594068,
                                -2020726.88432782
                            ],
                            [
                                1833337.91812821,
                                -2165064.51892266
                            ],
                            [
                                1750004.54594068,
                                -2309402.15351751
                            ],
                            [
                                1583337.80156563,
                                -2309402.15351751
                            ],
                            [
                                1500004.4293781,
                                -2165064.51892266
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442633"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1500004.4293781,
                                -1876389.24973297
                            ],
                            [
                                1583337.80156563,
                                -1732051.61513813
                            ],
                            [
                                1750004.54594068,
                                -1732051.61513813
                            ],
                            [
                                1833337.91812821,
                                -1876389.24973297
                            ],
                            [
                                1750004.54594068,
                                -2020726.88432782
                            ],
                            [
                                1583337.80156563,
                                -2020726.88432782
                            ],
                            [
                                1500004.4293781,
                                -1876389.24973297
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442686"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                1750004.54594068,
                                -2309402.15351751
                            ],
                            [
                                1833337.91812821,
                                -2165064.51892266
                            ],
                            [
                                2000004.66250326,
                                -2165064.51892266
                            ],
                            [
                                2083338.03469079,
                                -2309402.15351751
                            ],
                            [
                                2000004.66250326,
                                -2453739.78811235
                            ],
                            [
                                1833337.91812821,
                                -2453739.78811235
                            ],
                            [
                                1750004.54594068,
                                -2309402.15351751
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442736"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2000004.66250326,
                                -3897116.13406079
                            ],
                            [
                                2083338.03469079,
                                -3752778.49946595
                            ],
                            [
                                2250004.77906584,
                                -3752778.49946595
                            ],
                            [
                                2333338.15125337,
                                -3897116.13406079
                            ],
                            [
                                2250004.77906584,
                                -4041453.76865564
                            ],
                            [
                                2083338.03469079,
                                -4041453.76865564
                            ],
                            [
                                2000004.66250326,
                                -3897116.13406079
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442737"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2000004.66250326,
                                -3608440.86487111
                            ],
                            [
                                2083338.03469079,
                                -3464103.23027626
                            ],
                            [
                                2250004.77906584,
                                -3464103.23027626
                            ],
                            [
                                2333338.15125337,
                                -3608440.86487111
                            ],
                            [
                                2250004.77906584,
                                -3752778.49946595
                            ],
                            [
                                2083338.03469079,
                                -3752778.49946595
                            ],
                            [
                                2000004.66250326,
                                -3608440.86487111
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442793"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2250004.77906584,
                                -3175427.96108657
                            ],
                            [
                                2333338.15125337,
                                -3031090.32649173
                            ],
                            [
                                2500004.89562843,
                                -3031090.32649173
                            ],
                            [
                                2583338.26781595,
                                -3175427.96108657
                            ],
                            [
                                2500004.89562843,
                                -3319765.59568142
                            ],
                            [
                                2333338.15125337,
                                -3319765.59568142
                            ],
                            [
                                2250004.77906584,
                                -3175427.96108657
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442849"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2500004.89562843,
                                -3031090.32649173
                            ],
                            [
                                2583338.26781595,
                                -2886752.69189688
                            ],
                            [
                                2750005.01219101,
                                -2886752.69189688
                            ],
                            [
                                2833338.38437853,
                                -3031090.32649173
                            ],
                            [
                                2750005.01219101,
                                -3175427.96108657
                            ],
                            [
                                2583338.26781595,
                                -3175427.96108657
                            ],
                            [
                                2500004.89562843,
                                -3031090.32649173
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442850"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2500004.89562843,
                                -2742415.05730204
                            ],
                            [
                                2583338.26781595,
                                -2598077.4227072
                            ],
                            [
                                2750005.01219101,
                                -2598077.4227072
                            ],
                            [
                                2833338.38437853,
                                -2742415.05730204
                            ],
                            [
                                2750005.01219101,
                                -2886752.69189688
                            ],
                            [
                                2583338.26781595,
                                -2886752.69189688
                            ],
                            [
                                2500004.89562843,
                                -2742415.05730204
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442851"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2500004.89562843,
                                -2453739.78811235
                            ],
                            [
                                2583338.26781595,
                                -2309402.15351751
                            ],
                            [
                                2750005.01219101,
                                -2309402.15351751
                            ],
                            [
                                2833338.38437853,
                                -2453739.78811235
                            ],
                            [
                                2750005.01219101,
                                -2598077.4227072
                            ],
                            [
                                2583338.26781595,
                                -2598077.4227072
                            ],
                            [
                                2500004.89562843,
                                -2453739.78811235
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442904"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2750005.01219101,
                                -2886752.69189688
                            ],
                            [
                                2833338.38437853,
                                -2742415.05730204
                            ],
                            [
                                3000005.12875359,
                                -2742415.05730204
                            ],
                            [
                                3083338.50094112,
                                -2886752.69189688
                            ],
                            [
                                3000005.12875359,
                                -3031090.32649173
                            ],
                            [
                                2833338.38437853,
                                -3031090.32649173
                            ],
                            [
                                2750005.01219101,
                                -2886752.69189688
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442907"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2750005.01219101,
                                -2020726.88432782
                            ],
                            [
                                2833338.38437853,
                                -1876389.24973297
                            ],
                            [
                                3000005.12875359,
                                -1876389.24973297
                            ],
                            [
                                3083338.50094112,
                                -2020726.88432782
                            ],
                            [
                                3000005.12875359,
                                -2165064.51892266
                            ],
                            [
                                2833338.38437853,
                                -2165064.51892266
                            ],
                            [
                                2750005.01219101,
                                -2020726.88432782
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442910"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                2750005.01219101,
                                -1154701.07675875
                            ],
                            [
                                2833338.38437853,
                                -1010363.44216391
                            ],
                            [
                                3000005.12875359,
                                -1010363.44216391
                            ],
                            [
                                3083338.50094112,
                                -1154701.07675875
                            ],
                            [
                                3000005.12875359,
                                -1299038.7113536
                            ],
                            [
                                2833338.38437853,
                                -1299038.7113536
                            ],
                            [
                                2750005.01219101,
                                -1154701.07675875
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        },
        {
            "properties": {
                "pk": "442958"
            },
            "type": "Feature",
            "geometry": {
                "coordinates": [
                    [
                        [
                            [
                                3000005.12875359,
                                -3319765.59568142
                            ],
                            [
                                3083338.50094112,
                                -3175427.96108657
                            ],
                            [
                                3250005.24531617,
                                -3175427.96108657
                            ],
                            [
                                3333338.6175037,
                                -3319765.59568142
                            ],
                            [
                                3250005.24531617,
                                -3464103.23027626
                            ],
                            [
                                3083338.50094112,
                                -3464103.23027626
                            ],
                            [
                                3000005.12875359,
                                -3319765.59568142
                            ]
                        ]
                    ]
                ],
                "type": "MultiPolygon"
            }
        }
    ],
    "crs": {
        "type": "name",
        "properties": {
            "name": "EPSG:3031"
        }
    },
    "type": "FeatureCollection"
}