-
Notifications
You must be signed in to change notification settings - Fork 5
/
Avoidance_zone.dtd
56 lines (56 loc) · 1.47 KB
/
Avoidance_zone.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/Avoidance_zone.dtd",
"title": "Avoidance Zone",
"description": "Json schema for an Avoidance Zone clas, which is used for defining different type avoidance zones. For detailed usage see curl Avoidance Zones group",
"type": "object",
"properties": {
"territory_id": {
"type": "string",
"title": "Territory id",
"description": "32 character MD5 unique identifier"
},
"territory_name": {
"type": "string",
"title": "Territory name",
"description": "Territory name"
},
"territory_color": {
"type": "string",
"title": "Territory color",
"description": "Territory color"
},
"orders": {
"type": ["array", "null"],
"items": {
"$ref": "https://github.com/route4me/route4me-json-schemas/blob/master/Order_response.dtd"
},
"description": "The orders enclosed in the avoidance zone"
},
"member_id": {
"type": "integer",
"title": "Member ID",
"description": "Member ID"
},
"territory": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"poly",
"circle",
"rect"
]
},
"data": {
"type": "array",
"items": {
"type": "string"
},
"description": "String array containing geodezic parameters, for example, '56.127184156131065,56.93115234375', or '5000' for radius in case of circle shape territory"
}
}
}
}
}