ArcGIS and API Json

1059
3
08-12-2021 03:27 AM
Sietse_de_Haan
New Contributor III

Hi there!

So at first, I am completely new to working with API's etc 😄 And I am looking for some advice for the task that lies in front of me. At first some background information about this task. 

We have a few sensors that record the moisture of the soil around trees that we have to maintain. To read the records of these sensors we are using a website of the company that owns these sensors. Here it shows some nice graphs what the records are of the past week. 

Now me, as the GIS specialist of the company, thought to show the sensors on a map with the readings through the/an API. Thing is, I have no idea where to start :') 

The company of the sensors send me the website of their API: https://app.connectedgreen.nl/api/swagger/index.html 

Per thing there is a code written that can be used, but do I have to use HTML for this like in 'codepen' or do I use a arcgis notebook for this and write in Python? I have done some reading and tutorials but there is so much information.. There isn't a feature available but only code in the API. We also have quite some sensors so is there a way to combine these in a feature layer so I can just show this on the map inclusing the readings from the current day for example? 

I perhaps have more questions but lets start with this.

Sorry I am such a newbie but have to start somewhere.

Thanks for your help in advance!

With kind regards, Sietse

 

by the way, If i posted this thread in the wrong place, please move it to the correct one. Thanks!

 

 

Swagger UI (connectedgreen.nl)

 

 

Sietse de Haan
https://www.linkedin.com/in/sietse-h-de-haan/
0 Kudos
3 Replies
JakeSkinner
Esri Esteemed Contributor

Hi @Sietse_de_Haan,

The easiest approach would be to use GeoEvent Server to poll the API and send the JSON to a feature service.

Another option would be to use python in which you could query the API, process the JSON, and then update a feature service using the ArcGIS API for Python.  Here is an example on how to update a feature service.

Sietse_de_Haan
New Contributor III

Hi @JakeSkinner 

Thanks for your reply. ArcGIS Velocity would work as well as a solution? Compared to GeoEvent Server? Because we do not own Enterprise but ArcGIS Online. If it does, than I will look into what Velocity might cost us and see if we can use this as a solution.

Your second sounds like a lot of work and I dont have any experience with such solutions yet. I will look into this as well. 

When I know which direction we will go, I might ask more questions on how to do it, otherwise I will accept your reply as the solution to my question/problem.

Thanks again!

Sietse de Haan
https://www.linkedin.com/in/sietse-h-de-haan/
0 Kudos
JakeSkinner
Esri Esteemed Contributor

Yes, ArcGIS Velocity would work as well.  It is very similar to GeoEvent and can also poll the API and send the JSON to a feature service.

0 Kudos