-
Notifications
You must be signed in to change notification settings - Fork 5
/
Gps_position.json
104 lines (104 loc) · 2.66 KB
/
Gps_position.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"title": "Gps Position",
"type": "object",
"description": "Set GPS Position of the Device. url: https://www.route4me.com/track/set.php",
"required": [
"format",
"route_id",
"course",
"speed",
"lat",
"lng",
"device_type",
"device_guid"
],
"properties": {
"format": {
"type": "string",
"enum": [
"serialized",
"csv",
"xml"
],
"default": "xml",
"title": "Format",
"description": "The expected response format"
},
"member_id": {
"type": "number",
"title": "Member id",
"description": "The member id retrieved from the website that this instance of the application belongs to"
},
"route_id": {
"type": "string",
"title": "Route id",
"description": "The route id that is currently open on the user's phone"
},
"tx_id": {
"type": "string",
"title": "tx id",
"description": "On the first request you do not need to provide a tx_id. On the second request you provide the tx_id which you got back from the first request. The tx_id is the unique group of points related to this specific route transaction"
},
"vehicle_id": {
"type": "number",
"default": 0,
"title": "Vehicle id",
"description": "Each vehicle added into the system will have a vehicle id if the user added a vehicle. If the user did not add the vehicle, then the vehicle id will be zero"
},
"course": {
"type": "number",
"title": "Course",
"description": "The direction in degrees in which the vehicle is heading"
},
"speed": {
"type": "number",
"title": "Speed",
"description": "The speed with which the vehicle is moving"
},
"lat": {
"type": "number",
"title": "Latitude",
"minimum": -90,
"maximum": 90,
"description": "The current latitude position of the device"
},
"lng": {
"type": "number",
"title": "Longitude",
"minimum": -180,
"maximum": 180,
"description": "The current longitude position of the device"
},
"altitude": {
"type": "number",
"title": "Altitude",
"description": "Altitude relative to sea level of the device being tracked"
},
"device_type": {
"enum": [
"phone",
"ipad",
"android_phone",
"android_tablet"
],
"title": "Device type",
"description": "The device type submitting the data"
},
"device_guid": {
"type": "string",
"title": "Device id",
"description": "Device id"
},
"device_timestamp": {
"type": "string",
"format": "date-time",
"title": "Device timestamp",
"description": "The timestamp on the local (remote relative to the server) device"
},
"app_version": {
"type": "string",
"title": "Application version",
"description": "The version of the app submitting the data"
}
}
}