-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathOptimization_create.dtd
82 lines (82 loc) · 2.81 KB
/
Optimization_create.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/Optimization_create.dtd",
"title": "Optimization Create",
"type": "object",
"properties": {
"addresses": {
"type": "array",
"title": "Route Addresses",
"items": {
"$ref": "https://github.com/route4me/route4me-json-schemas/blob/master/Address.dtd"
},
"descrption": "Route Addresses. POST data"
},
"depots": {
"type": "array",
"title": "Depots",
"items": {
"$ref": "https://github.com/route4me/route4me-json-schemas/blob/master/Address.dtd"
},
"descrption": "Optimization depots. POST data"
},
"parameters": {
"type": "array",
"title": "Route Parameters",
"items": {
"$ref": "https://github.com/route4me/route4me-json-schemas/blob/master/RouteParameters.dtd"
},
"descrption": "Route Parameters. POST data"
},
"directions": {
"type": "integer",
"enum": [
0,
1
],
"title": "Directions",
"description": "A flag to enable or disable driving and turn-by-turn directions being returned. Not returning them is more efficient for the database. Query string (GET fields)."
},
"format": {
"type": "string",
"enum": [
"json",
"xml",
"serialized",
"friendly",
"csv"
],
"title": "Format",
"description": "The format in which to return the route data. This parameter is ignored for now, as only JSON is supported. Query string (GET fields)."
},
"route_path_output": {
"type": "string",
"enum": [
"Points",
"None"
],
"default": "None",
"title": "Route Path Output",
"description": "Return the path points when returning the newly created route... Query string (GET fields)."
},
"optimized_callback_url": {
"type": "string",
"title": "Optimized Callback URL",
"description": "A URL that gets called when the optimization is solved, or if there is an error. The callback is called with a POST request. The POST data sent is: timestamp (Seconds): Server timestamp of request sent optimization_problem_id (Hash String): ID of the optimization state (Small Int). The state can be one of the values: 4 = OPTIMIZATION_STATE_OPTIMIZED, which means the optimization was successful; or 5 = OPTIMIZATION_STATE_ERROR, which means there was an error solving the optimization.. Query string (GET fields)."
},
"order_territories": {
"type": "object",
"$ref": "https://raw.githubusercontent.com/route4me/route4me-json-schemas/master/Order_territories.dtd",
"description": "The order territories containing addresses for an optimization process."
},
"uploads": {
"type": "array",
"title": "Array Of Uploaded File IDs",
"description": "An array of the uploaded file IDs."
"items": {
"type": "string",
"description": "A unique ID of an uploaded address file."
}
}
}
}