I have a very similar problem.
I would like to call the google distance martix JS api from the server code. I will take the data that is returned, do some data manipulation on it and feed the results back to the app.
The question is:
What do I have to do to use this google JavaScript api in the server code?
If i need to add a library, what library do I need to add? Where would I find such a library? Google's documentation seems to be for programming in an html environment, so it is not very helpful. It talks about typing in some code to load the library dynamically, but it seems that would need the JS source to load into APPERY.io.
any help you can offer would be greatly appreciated.
I would recommend a tutorial on how to make calls to REST apis from the server code in JS.
The goal here is to have the server do all of the calling of API's so the client only has to deal with a single API call - to the server. Also, If i want to maintain a database and automatically update it every (however long), then the server code should be able to call an API do the update, and have the information available in the database when the client comes calling.
Thanks
T