-
Notifications
You must be signed in to change notification settings - Fork 5
/
Gps_position.dtd
106 lines (106 loc) · 2.79 KB
/
Gps_position.dtd
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
105
106
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/Gps_position.dtd",
"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",
"descrption": "The expected response format"
},
"member_id": {
"type": "number",
"title": "Member id",
"descrption": "The member id retrieved from the website that this instance of the application belongs to"
},
"route_id": {
"type": "string",
"title": "Route id",
"descrption": "The route id that is currently open on the user's phone"
},
"tx_id": {
"type": "string",
"title": "tx id",
"descrption": "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",
"descrption": "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",
"descrption": "The direction in degrees in which the vehicle is heading"
},
"speed": {
"type": "number",
"title": "Speed",
"descrption": "The speed with which the vehicle is moving"
},
"lat": {
"type": "number",
"title": "Latitude",
"minimum": -90,
"maximum": 90,
"descrption": "The current latitude position of the device"
},
"lng": {
"type": "number",
"title": "Longitude",
"minimum": -180,
"maximum": 180,
"descrption": "The current longitude position of the device"
},
"altitude": {
"type": "number",
"title": "Altitude",
"descrption": "Altitude relative to sea level of the device being tracked"
},
"device_type": {
"enum": [
"phone",
"ipad",
"android_phone",
"android_tablet"
],
"title": "Device type",
"descrption": "The device type submitting the data"
},
"device_guid": {
"type": "string",
"title": "Device id",
"descrption": "Device id"
},
"device_timestamp": {
"type": "string",
"format": "date-time",
"title": "Device timestamp",
"descrption": "The timestamp on the local (remote relative to the server) device"
},
"app_version": {
"type": "string",
"title": "Application version",
"descrption": "The version of the app submitting the data"
}
}
}