API

56 views
Skip to first unread message

Fuser55

unread,
Jul 28, 2016, 1:17:51 AM7/28/16
to iNaturalist
Hello,

I am working on a small project for an educational program. I've only been coding for about 3 weeks.

The goal of my project is to display animal location around the user's input location. I used the Maps API to take user input for user location and also did autolocate all through the JavaScript API. 

All I need now is to display actual animal locations on the map. I was planning on using iNaturalist API to get animal location but I have no idea how to implement it to a JavaScript environment if the API is made on rails. I'm using Google AppEngine to host my web app and i am currently using just HTML/CSS, JS and python.

Any advice on how to implement the API to my application so that it would display observations on my map would be amazing. Thank you!!!

Alex Shepard

unread,
Jul 28, 2016, 2:24:57 AM7/28/16
to iNaturalist

I would start with the inaturalistjs library: https://github.com/inaturalist/inaturalistjs

Good luck!

Ken-ichi

unread,
Jul 28, 2016, 9:57:01 PM7/28/16
to inaturalist
We have some documentation for developers at
http://www.inaturalist.org/pages/developers. Like Alex said you can
use our JS package, particularly if you're using npm, but if you just
want to show points on a Google Map you might just want to use our
Node API, which will give you observations in JSON format.

Example (first page of monarch obs):
http://api.inaturalist.org/v1/observations?taxon_id=48662
Example (first page of monarch obs in California):
http://api.inaturalist.org/v1/observations?taxon_id=48662&place_id=14
Docs: http://api.inaturalist.org/v1/docs/#/Observations

On Wed, Jul 27, 2016 at 11:24 PM, Alex Shepard <al...@inaturalist.org> wrote:
>
> I would start with the inaturalistjs library: https://github.com/inaturalist/inaturalistjs
>
> Good luck!
>
> --
> You received this message because you are subscribed to the Google Groups "iNaturalist" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to inaturalist...@googlegroups.com.
> To post to this group, send email to inatu...@googlegroups.com.
> Visit this group at https://groups.google.com/group/inaturalist.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages