Upload data to openstreetmap via javascript - openstreetmap

Is there a way to upload data (for example points/routes) to openstreetmap via javascript?
I develop a mobile application, where the users could upload some kinds of data to openstreetmap. I would like to create my own editor for this (to be able to restrict the kind of data uploaded, and to provide a user friendly mobile solution).
Can it be done?
Thanks.

Sure, why not? The OpenStreetMap API is based on simple HTTP requests. First you need to authenticate yourself using an user name and password or via OAuth. Then you can upload new changesets.
Note that each of your users will need an OSM account in order to upload data.

Related

How do you get the upload URL of a backend server so you can upload data to it?

I am trying to upload some data to firebase storage by using an upload URL instead of the traditional way by using:
Storage.storage().reference().child("Name").putFile("file name")
The reason that I need the URL instead of going the traditional route is because I need to use URLSession to upload data so my task can finish uploading in the background if the user closes out of the app during the upload time.
Summary:
How do you get the URL of my firebase storage so I can directly upload data through my URL using URLSession instead of using the traditional route?
Thanks in advance! Let me know if you have any questions.
There is no way to generate a signed upload URL through the Firebase SDKs for Cloud Storage.
If you want to upload using an upload URL, you'll have to generate the upload URL with one of the GCP SDKs or the REST API (all of which are designed to be used in trusted environments only), and share that with your clients (for example through the Firebase Realtime Database or Firestore, or a custom API endpoint you create in Cloud Functions/Cloud Run).

Can I show user data to other users in Stormpath?

I'm trying to integrate Stormpath to an iOS app (Swift), and would like to be able to show one user's data to another user.
In other words, can I show 1 user another user's information by searching my userlist for certain factors (such as age or geographic location) like I would be able to with mySQL?
Is this possible? I haven't been able to find documentation for this.
To do this, you would implement an API endpoint in your backend application that exposes whatever information you need (for example, another user's data), and then have your iOS app make a request to your API to retrieve that information and display it on the device.
Stormpath is really flexible and will allow you to do pretty much whatever you want with your user data, so as long as you can write an API call on your backend to retrieve the data, your iOS app can show whatever you want =)
SOURCE: I work # Stormpath.

iphone post to google fusion table without login

I need my iphone app to allow users to post to a google fusion table without entering a username and password. currently I use google client login with the password hard coded into the app. Obviously this is a poor solution, but I cannot find how to do this with oauth?
Do you want the user to be submitting data to their own individual fusion tables, or all users to be modifying a single table that you own?
For the first case, you'll want the user to authorize (via oauth) access to their account (there's no iOS specific client library from Google, but there are a number of answers here in SO about how to do this)
If you want everyone to be entering data into the same table, the best practice is probably not to hardcode the password and/or tokens into your app, but rather to use a proxy (for example via a service account running on AppEngine). Note that this proxy should still do some kind of authentication with your iphone users so random folks can't just easily post whatever they want to it w/o running your app.

Google Analytics API Easy Dashboard Javascript Library

I want to use the Google Analytics API to show analytics data in our CMS.
As every website runs the CMS under their own domain like domain.com/cms I do not want to use webapplication API access. I want to use a API Service Accounts, so there is no domain check using the API, in stead it uses a client id (different from webapplication access) and a private key.
So far, so good. I set up the connection with the API and I can read google analytics data.
But I would like to show some charts.
Easy Dashboard Javascript Library is very handy, but it uses webapplication API access, so it checks the URL where it is called from. And I don't want this. Is there a way to simply create charts (with this library or another), and using Service Account API access?
You can get the data from your Google Analytics Service Account and use the data to create charts using the many libraries available using javascript or jquery.
http://www.1stwebdesigner.com/css/top-jquery-chart-libraries-interactive-charts/

Using Google cloud in an iPhone app

In my app i want to allow the user to backup the data to google docs. All my data were stored in sqlite file. How can i backup this data?
I looked in the Google API's page dedicated for mobiles, and I was unable to find out how to connect to google docs. Any help is appreciated.
there are two way to do this .. one is using soap web service(Passing XML) and another one is called rest service (Passing URL) for accessing APi. First hit the login API using google account. later use XML or to do Remaining work.
I have converted the sql file to pdf file(Google doc supported file format) for storing in Google doc. For restore, i have download the same file and converted it to sql. I used Google API and follows the steps as in this blog.
Thanks for your help.