I’m a member of my local chapter of the California Native Plant Society and am looking into creating a Plant Atlas for our county (kind of like San Diego has).
The idea of a plant atlas is to show areas with less species diversity and encourage folks to go out and increase coverage in those areas. I have a mockup of an atlas that looks like this:
This shows native plant observation density using the iNaturalist grid tile service: https://tiles.inaturalist.org/v1/grid/{z}/{x}/{y}.png?verifiable=true&place_id=962&project_id=calflora-native-plants-of-california&style=geotilegrid&tile_size=256
I would love to be able to also show how many species are in each black box, on a live map as users zoom in and out. The black boxes are zoom level 12 XYZ tiles, so a request for one box’s UTFGrid data would be https://tiles.inaturalist.org/v1/points/12/701/1634.grid.json?verifiable=true&place_id=962&project_id=calflora-native-plants-of-california&style=geotilegrid&tile_size=256&quality_grade=research
,
which returns a list of observations that look like this today:
My feature request is for this response to include speciesCount: 234
in the response for the tile, maybe as an X-header if it’s requested via ?speciesCount=true
or in the JSON response as a new property. As far as I am aware there is no other way to do this for live observations, unless I do hundreds of observations requests with bounding boxes for each black rectangle, which would quickly exceed API limits. Even if a taxonId: 53359
was returned for each observation, from what I can tell, UTFGrid tiles don’t return all the observations in a given tile, they cap at around 500 for a 256x256 tile (correct me if I’m wrong).