ropensci / rredlist

IUCN Red List API Client
https://docs.ropensci.org/rredlist
Other
46 stars 14 forks source link

Give back taxon names for `Named Species` slots in /threats route #10

Closed sckott closed 7 years ago

sckott commented 8 years ago

An rredlist user pointed out that in the /threats route, at least sometimes when the 'title' key gives back "Named species" it doesn't give the name of the taxon. However, the taxon name appears to be on the web page, e.g.

http://apiv3.iucnredlist.org/api/v3/threats/species/id/62290750?token=

vs.

http://www.iucnredlist.org/details/classify/62290750/0#threats

Emailed IUCN dev about this, they are looking into it

sckott commented 7 years ago

still haven't heard back about this. emailed again today to see what's up

sckott commented 7 years ago

hmm, seems like might be working now

{
  "code": "8.1.2",
  "title": "Named species (Ammophila arenaria)",
  "timing": "Ongoing",
  "scope": "Minority (<50%)",
  "severity": "Slow, Significant Declines",
  "score": "Low Impact: 5",
  "invasive": "Ammophila arenaria"
}

still need to parse name out though for people

sckott commented 7 years ago

looks like name is pulled out from the text already when there is a name in the text - so nothing else to be done