Arena mobile api connection to postgis external database

  • Asked
  • Active
  • Viewed 2964 times
0

I am investigating to use Arena Mobil for field survey.

I would like to get the survey record to copy it in my PostGIS database for further data analysis and publication in my own web mapping platform connected to the PostGIS database.

Furthermore, I know that I should export the survey record in file format, but the best should be to use python or R script for example to automatically copy records from Arena database to my own PostGIS database.

Is there any API or trick to do it ?

Best regards

1

Accepted answer

Dear users,
In Arena there is already a RESTful API to query the data stored in the records (data is fetched in JSON format).
It's not documented but it's used in the Explorer module in Arena; you could try to investigate how it works by yourself by checking what is being sent to the server while you define the query to extract the data in that section, or if you want we can contact you to your private email address to better understand your needs.
Many thanks,
Open Foris Team

In Arena there is already a RESTful API

Oh, that is great!

Now, I have slightly different issues to solve, but I will come to this probably soon.

I will try to get oriented in Explorer module in Arena!

Please, if you will communicate something via email regarding this, add me to CC (my email is accessible in my profile here, right?)!

jurafejfar jurafejfar
0

Accepted answer

Hi Clardeaux,

There is API used for export to R. See this in docs:

api

J.

But it will just download data in .zip ...

I have somewhat similar plans to touch data from my custom postgres DB... So far, I did not find any API for that. I just spent some limited time browsing source code on GitHub.

But on the other hand, I have found the Arena internal DB structure and data format (JSON) quite accessible. So If you could host Arena (server) yourself, it would be quite easy to access data inside quite easily.

jurafejfar jurafejfar

Maybe, it would be also possible to develop REST API (for example PostGREST) which will serve data through https protocol. And maybe in the future this could be integrated to Arena?

jurafejfar jurafejfar

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Tip: type a few words from the error message, or put a tag in [brackets] to look only there.

Menu

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.