CompanyGateways / mytracks

Automatically exported from code.google.com/p/mytracks
1 stars 0 forks source link

Possibility to define custom upload-locations #431

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Feature request:
* Possibility to define a custom URL, and optional HTTP POST parameters (maybe 
GET as well?) for uploading a track file/data to a 3rd party site.

Requirements could be, for example, the following:
1. Add new settings-menu for defining custom upload-locations. Each custom 
upload-location would have the following settings:
** Name
** URL
** File type: GPX / KML / CSV / TCX
** File parameter name
** Additional parameters (for example, username=foo & password=bar)
Note: alternatively these settings could be "hardcoded" -- e.g. data, username 
and password
2. Add new "Upload to custom location" (or something with more descriptive 
title) menu-option alongside of "Share with Friends..." and "Write to SD 
card...", which would include user-defined custom upload-locations. Checking 
response could be handled e.g. simply with a HTTP response code (200 -> OK, 
otherwise error).

Feature rationale:
* Make mytracks suitable to be used for gathering exercise data (GPS, 
heart-rate etc.) for any 3rd-party (non-commercial?) service.

What do you think? Would such a feature be appropriate for the main mytracks 
distribution? I have a strong Java web-development background (with average 
Android know-how with couple of non-commercial projects), and would be willing 
to contribute the code myself, if this feature got green-light. Comments?

- Pyppe

Original issue reported on code.google.com by pyry.la...@gmail.com on 26 Apr 2011 at 11:14

GoogleCodeExporter commented 9 years ago
The changes needed to do everything you've asked for here got merged in last 
night.

http://code.google.com/p/mytracks/issues/detail?id=429

based on

http://code.google.com/p/mytracks/issues/detail?id=419

I've just finished implementing a export application that takes My Tracks data 
and uploads it to dailymile.com via the "Share with Friends..." option. Using 
the same pattern for any other service should be relatively easy.

I think the "plugin" approach is better than cluttering up My Tracks with menus 
to export to any number of 3rd party sites.

You can read about the dailymile exporter (Tracks2Miles) here:

http://www.hardill.me.uk/wordpress/?tags=tracks2miles

I'm planning to do a My Tracks wiki page about it soon, but have a read and 
leave me a comment if you have any questions

Original comment by b.hard...@gmail.com on 26 Apr 2011 at 5:27

GoogleCodeExporter commented 9 years ago
I'm not willing to rule out this development but I do agree it would be best 
done with third party apps.  We expose all of our data so it is possible for 
other apps to upload data based on the file or by directly reading out of our 
db.

If you add the code in a clean manner we would consider it. [Clean means it 
does not clutter up the UI or code base. I expect a very small percentage of 
people would use this so it should be neatly hidden.]

Original comment by sandordo...@google.com on 26 Apr 2011 at 8:25

GoogleCodeExporter commented 9 years ago
My Tracks already supports 3rd party api. Not going to add more end points 
inside the app.

Original comment by jshih@google.com on 10 Nov 2012 at 10:18