Create API endpoint to find place contained within another place

i was thinking of writing a related feature request, but i wonder if i can just expand upon this one?

basically, i was thinking it would be nice if all the parameters available to the get places endpoint in the deprecated API were made available in a new or modified endpoint in the current v1 (and/or upcoming v2) API.

besides ancestor filtering, place type filtering (see related admin-level filtering discussion https://forum.inaturalist.org/t/more-structured-place-information-from-the-observation-api/15613/6) and establishment means filtering (see related discussion (https://forum.inaturalist.org/t/how-can-you-get-the-full-list-of-establishment-means-for-a-taxon/15435/4) seem to be available only in the deprecated API. so assuming that the deprecated API will be decommissioned at some point, it would be nice to make that functionality available in the v1/2 APIs.

i haven’t seen much movement on this or the related admin-level filtering request, and it doesn’t look like these requests are necessarily being incorporated into the buildout of v2. so i just wanted to bring this up again, while v2 is being built out, in case it makes sense to revisit it at this time…

so in a nutshell, my proposal would be a new or modified get place endpoint in the v1 and/or v2 APIs which would allow filtering by at least:

  • ancestor
  • place type (and/or admin level)
  • establishment means (in conjunction with associated taxon, of course)
2 Likes