Joseph D. Cohen
Joseph D. Cohen
iNat API documents: - [iNaturalist API](https://api.inaturalist.org/v1/docs/) - [API Recommended Practices](https://www.inaturalist.org/pages/api+recommended+practices) - [Authentication](https://www.inaturalist.org/pages/api+reference#auth) (How to get authentication to retrieve iNat private data.) - [create an iNat application](https://www.inaturalist.org/oauth/applications/new) - [ iNat ObservationFields](https://www.inaturalist.org/observation_fields)...
To play with API requests: - Go to [iNaturalist API](https://api.inaturalist.org/v1/docs/) - Scroll down to the list of objects - Click on an object (e.g. `Observations`) - Click an Operation (e.g....
Plan: start with a foreground job that imports a single iNat Observation without authentication. Later: - Import multiple observations - Do it in the background - Deal with authentication. Possibly...
Photos They're in aws. pseudocode: ```ruby obs[:observation_photos].each do |photo| aws_id = photo[:photo_id] import this: https://inaturalist-open-data.s3.amazonaws.com/photos//original.jpeg end ``` to get image to local tmp file (per Copilot) ```ruby require 'open-uri' url...
#### How do I copy an image from an external website to a (temp) file on the server? Nathan Wilson Sun, Apr 21, 2024 at 5:04 AM ... At least...
From `README_API.md` >* POST > > The response will include the id of the new record. > > Attach the image as POST data or URL. See `script/test_api` for an...
Following is returns by API help request `http://localhost:3000//api2/images?help=1` ```json { "version": 2, "run_date": "2024-05-04T11:40:53.075Z", "errors": [ { "code": "API2::HelpMessage", "details": "Usage: confidence: confidence range (limit=-3..3); content_type: enum list (limit=bmp|gif|jpg|png|raw|tiff); copyright_holder_has:...
### Is iNat Obs in _Fungi_? Taxa page for _Fungi_: https://www.inaturalist.org/taxa/47170-Fungi_ So `[:taxon][:ancestor_ids] `must include 47170 alternative: `[:taxon][:iconic_taxon_name] == "Fungi"`
### iNat Projects Issue. I cannot reliably get an iNat observation's Projects via the new API. Ex: [iNat 216745568](https://www.inaturalist.org/observations/216745568) shows many projects via the UI. But the corresponding fixture has...
for `contains_box`, I need to have a (separate?) scope which generalizes this (from #2183) ```ruby scope :contains, # Use named parameters (lat:, lng:), any order lambda { |**args| args =>...