- Code: Select all
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.
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.
If the user set the username in settings, then it’s sent using this flag in plain text.
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.
Unique ID of the trip for that device. It’s the internal identification for that trip in the Btraced application.
Name of the trip
Total travel length in meters
Total travel time in seconds
The total amount of points recorded for that trip
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.
Btraced point ID of the internal database
Date of the point stored in EPOC linux time with milliseconds
Latitude of the point
Longitured of the point
Speed at that point, in m/s. Value would be -1.0 if the speed is not available (Speed * 3.6 = KM)
Trip course at that point in degrees. Value would be -1.0 if the course is not available
Horizontal accuracy for that point in meters
Baterry level of the iPhone (value is 0 to 1)
Vertical accurracy at that point in meters. Can be -1.0 if vertical accuracy cannot be determinated
Elevation at that point. Can be -1.0 if not available
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
Total trip’s distance at that point in meters
Relative distance in meters from previous point
Total time of the trip at that point in seconds
see also the protocol document here