49. Pull observations from iNaturalist into an easy-to-print forma

for what it’s worth, you do get updates in your homepage that show who added an observation field. those can get lost in the stream of other updates. so, alternatively, you can get the information from the API’s observation details and observation search endpoints.

for example, you can look at the results returned by either of these API requests, and look for the ofvs section:

https://api.inaturalist.org/v1/observations/3896993 2
https://api.inaturalist.org/v1/observations?id=3896993
it’s not super easy to parse through the API results. so something like this could provide a more human-friendly view of the results that come from those API endpoints: https://jumear.github.io/stirfry/iNat_print_friendly_obs.html 2. (just input your id, and click the query button.)

in the case of the observation noted in your original post, it looks like you (arborsphere) added that particular observation field (or, perhaps, you were the last person to have modified it?).

https://jumear.github.io/stirfry/iNat_print_friendly_obs.html


This is *intended* to pull observations from iNaturalist into an easy-to-print format, given parameters input below. Sections in beige will not be printed.

To work within iNaturalist API limits, this will retrieve data in sets of up to 30 records at a time. To get each additional set of 30 records, scroll to the end of the page. To clear results so that you can query with new parameters, refresh the page using your browser controls.

To do in future versions of this page:
1. Add additional parameter fields
2. *Try* to add page numbering and other footer/header items. (HTML doesn't seem to support this very well as of 2020.)
3. Code the map thumbnail a little more elegantly. (Right n

https://jumear.github.io/stirfry/iNat_print_friendly_obs.html

The information is also available, in the form of the userid number in the json of the observation record (which can be seen by just adding .json to the end of the url such as https://www.inaturalist.org/observations/66857258.json) if you dont want to interact via the API.

Publicado el 21 de diciembre de 2020 a las 10:33 PM por ahospers ahospers

Comentarios

No hay comentarios aún.

Añade un comentario

Entra o Regístrate para añadir comentarios