Git Product home page Git Product logo

Comments (8)

pleary avatar pleary commented on August 15, 2024

Can you provide a little more detail about what you need? For ancestors/children would you need more than what details currently provides http://api.inaturalist.org/v1/taxa/12727 ? Seems like you'd minimally want scientific name, rank, and common name.

What about conservation statuses and establishment means? The API currently returns the best matching value of each when given a place. Do you need more than that? Do you need data about these across all places?

from inaturalistapi.

kueda avatar kueda commented on August 15, 2024

Definitely need sci name, common name, and rank for all ancestors and children.

For conservation statuses I need

  • place.name
  • status
  • iucn
  • url
  • authority
  • description

For establishment I need listed taxon

  • place.name
  • establishment_means
  • list.title
  • id (or again, enough info to link to the listed taxon

For ConservationStatus I need all of them associated with this taxon (not descendants or ancestors). For establishment and listed taxa... let's just stick with the requested place for now. I feel like we might get a better list of places if/when Scott's atlas idea pans out. In addition to what's already in the API, it might be nice to get the listed taxon's list.title, but not critical if it's a pain.

from inaturalistapi.

pleary avatar pleary commented on August 15, 2024

Do you only need the listed taxa with establishment means? Right now I have it returning all listed_taxa with a place or means (and not filtering by preferred_place_id)

from inaturalistapi.

pleary avatar pleary commented on August 15, 2024

I added the taxon photos, but didn't get the "taxon if descendant" bit in yet. The new code needs new data in ES, which is generated by a new rails branch. I indexed the first few thousand taxa on Staging and have the API running this branch there if you want to test it out

from inaturalistapi.

kueda avatar kueda commented on August 15, 2024

To more requests to help configure the map:

  1. GBIF ID
  2. Enough info to configure the taxonMap to show a range (I think this is just a boolean)

from inaturalistapi.

pleary avatar pleary commented on August 15, 2024

I turned taxon.photos into taxon.taxon_photos which now includes the taxon of the clade where the photo came from. Now that I think of it, I wonder how useful this will be since it's the taxon of the clade the photo is attached to, not the species featured in the photo. If it's not that useful, then maybe taxon_photos is overkill and we go back to photos.

I was thinking about doing the map stuff separately from taxon details. Right now it seems like we fetch GBIF IDs on demand, not in bulk on some schedule. There can also be good reasons to expire cached IDs and look them up again, and we probably don't want to do that for all taxa all the time. So that is the kind of thing we might want to fetch asynchronously when maps are rendered, not every time we return taxon details from the API. Maybe there's a separate taxon map layers API that the taxon map JS code can call and append the map layers menu accordingly.

from inaturalistapi.

kueda avatar kueda commented on August 15, 2024

I think the taxon photos stuff will still be useful. I'm happy to go with whatever seems the most reasonable to you regarding taxon map parameters. Happy to make another request if that seems cleaner to you.

from inaturalistapi.

pleary avatar pleary commented on August 15, 2024

pretty sure this is done now

from inaturalistapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.