.alternative 1: .send (whole) track
trakkcor submits the whole track via HTTP post. The submitted request parameters are:
- trackID (integer)
- position[] (array of strings)
Every position element is formatted as NMEA GGA string. You may consider the
ch.javablog.mobile.trakkcor.model.GGAInfo class in order to find out how to parse
this string.
The following example shows a track with two positions.
trackID=5
position[]=$GPGGA,130305.0,4717.115,N,00833.912,E,1,08,0.94,00499,M,047,M,,*
position[]=$GPGGA,130305.0,4717.084,N,00833.030,E,1,08,0.94,00499,M,047,M,,*
.alternative 2: live tracking (0.2.0)
each time trakkcor fetches a position, it automaticly sends it to the server (via HTTP post) The submitted request parameters are:
- deviceID (integer)
- position (string)
Example:
deviceID=HEIKO
position=$GPGGA,130305.0,4717.115,N,00833.912,E,1,08,0.94,00499,M,047,M,,*