- Code: Select all
<bwiredtravel>
<model>iPhone</model>
<devId>21622f43420a5590f327fcd78efb753c55189bff</devId>
<username>pk</username>
<password>testing</password>
<travel>
<id>1</id>
<description>23-03-12 bike</description>
<length>2954.76</length>
<time>1014</time>
<tpoints>129</tpoints>
<uplpoints>100</uplpoints>
<point>
<id>104</id>
<date>1332524797.424494</date>
<lat>+51.724043</lat>
<lon>+5.300559</lon>
<speed>3.911873</speed>
<course>72.584372</course>
<haccu>10.000000</haccu>
<bat>0.40</bat>
<vaccu>9.000000</vaccu>
<altitude>1.645592</altitude>
<continous>0</continous>
<tdist>2559.39</tdist>
<rdist>97.17</rdist>
<ttime>811</ttime>
</point>
<point>
<id>105</id>
<date>1332524800.426888</date>
<lat>+51.724118</lat>
<lon>+5.300701</lon>
<speed>3.941704</speed>
<course>41.977433</course>
<haccu>10.000000</haccu>
<bat>0.40</bat>
<vaccu>9.373876</vaccu>
<altitude>2.436264</altitude>
<continous>1</continous>
<tdist>2572.19</tdist>
<rdist>12.80</rdist>
<ttime>814</ttime>
</point>
</travel>
</bwiredtravel>
The full XML starts with the tag “bwiredtravel”. There we have general information of the user described by these fields:
Model: Actually it will always contains “iPhone” as the application is designed for iOS. Maybe later it would be switch to Android.
devId:
Unique device identification. This can be used to identify the device for that user, or even create an account using just the device ID instead username or password.
Username:
If the user set the username in settings, then it’s sent using this flag in plain text.
Password:
If the user set the password in settings, then it’s sent using this flag in plain text.
The there would be information for the selected trip (or current trip). It starts with the “travel” tag and there is general information for that trip as follows.
ID:
Unique ID of the trip for that device. It’s the internal identification for that trip in the Btraced application.
Description:
Name of the trip
Length:
Total travel length in meters
Time:
Total travel time in seconds
Tpoints:
The total amount of points recorded for that trip
Uplpoints:
Internal btraced counter of the uploaded points for that trip
And then, there are list of all the points that Btraced request to store in the server database.
They are one “point” tag for each point to be saved. Each point is described with the following tags.
ID:
Btraced point ID of the internal database
Date:
Date of the point stored in EPOC linux time with milliseconds
Lat:
Latitude of the point
Lon:
Longitured of the point
Speed:
Speed at that point, in m/s. Value would be -1.0 if the speed is not available (Speed * 3.6 = KM)
Course:
Trip course at that point in degrees. Value would be -1.0 if the course is not available
Haccu:
Horizontal accuracy for that point in meters
Bat:
Baterry level of the iPhone (value is 0 to 1)
VAccu:
Vertical accurracy at that point in meters. Can be -1.0 if vertical accuracy cannot be determinated
Altitude:
Elevation at that point. Can be -1.0 if not available
Continous:
It’s set to 1 if the trip was not stopped since the previous saved point. It will be 0 if the trip tracking has been stopped and started again. Can be used for determining each trip segment
Tdist:
Total trip’s distance at that point in meters
Rdist:
Relative distance in meters from previous point
TTime:
Total time of the trip at that point in seconds
see also the protocol document here
http://www.btraced.com/Btraced%20Protocol%20v1.0.pdf