It looks like the observation API returns two pieces of data about where an observation was made:
- The “place_guess” which is just a string (and could be in any language)
- A simple list of “place_ids”, with no organization
If I want to find out, for example, which country an observation was made in, it seems I have to query all of the place IDs in the list (which could be dozens) and see which one has admin_level 0. It would be really nice if the standard place levels were included in the initial observation API response or perhaps as an optional set of data invoked using the ‘extra’ parameter (e.g. ‘extra=places’). The response key pairs could look something like:
(assuming that admin level -1 is always a continent and admin level 0 is always a country).
For context, this is mainly needed for the iNaturalist2Commons tool, so that it can list where the photo was taken.