{"_id":"57451aa8e33ef10e00e1a9b6","user":"57061c3e21cfed0e00e8c640","version":{"_id":"5706099c21cfed0e00e8c60e","hasDoc":true,"project":"5706099c21cfed0e00e8c60b","__v":6,"hasReference":true,"createdAt":"2016-04-07T07:17:48.808Z","releaseDate":"2016-04-07T07:17:48.808Z","categories":["5706099c21cfed0e00e8c60f","573548f4afab4417007239cf","57354970fc5f1e0e001a463c","573549791f16241700c89fc9","57441052583f470e000a7947","57a068f90c933e0e00249bae"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.17","version":"1.0.17"},"editedParams":true,"githubsync":"","project":"5706099c21cfed0e00e8c60b","category":{"_id":"57441052583f470e000a7947","__v":0,"project":"5706099c21cfed0e00e8c60b","version":"5706099c21cfed0e00e8c60e","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-05-24T08:26:58.716Z","from_sync":false,"order":9999,"slug":"experience-mining-api","title":"Experience Mining API"},"editedParams2":true,"parentDoc":null,"__v":4,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-05-25T03:23:20.864Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"name":"request - body","language":"json","code":"{\n  \"expCode\": \"vehicleA\",\n  \"routeLogs\": [\n    {\n      \"type\": \"Route\",\n      \"driver\": {\n        \"id\": \"d1\",\n        \"maxCapacity\": {\n          \"data\": {\n            \"Volume\": 1000000.0\n          }\n        },\n        \"startLocation\": {\n          \"labels\": [],\n          \"x\": 128.1,\n          \"y\": 37.1\n        },\n        \"endLocation\": {\n          \"labels\": [],\n          \"x\": 128.1,\n          \"y\": 37.1\n        },\n        \"startTime\": {\n          \"epoch\": 1455340000\n        },\n        \"endTime\": {\n          \"epoch\": 1455370000\n        },\n        \"skillLevel\": 0,\n        \"vehicleFeatures\": []\n      },\n      \"jobs\": [\n        {\n          \"id\": \"j1\",\n          \"tasks\": [\n            {\n              \"id\": \"t1\",\n              \"jobId\": \"j1\",\n              \"taskType\": \"DepotDelivery\",\n              \"location\": {\n                \"labels\": [],\n                \"x\": 126.9,\n                \"y\": 37.3\n              },\n              \"capacity\": {\n                \"data\": {\n                  \"Volume\": 100.0\n                }\n              },\n              \"taskDuration\": {\n                \"seconds\": 300\n              },\n              \"timeWindow\": {\n                \"start\": {\n                  \"epoch\": 1455354000\n                },\n                \"end\": {\n                  \"epoch\": 1455364800\n                }\n              },\n              \"difficulty\": 0\n            }\n          ],\n          \"partialOrder\": []\n        }\n      ],\n      \"tasks\": [\n        {\n          \"id\": \"t1\",\n          \"jobId\": \"j1\",\n          \"taskType\": \"DepotDelivery\",\n          \"location\": {\n            \"labels\": [],\n            \"x\": 126.9,\n            \"y\": 37.3\n          },\n          \"capacity\": {\n            \"data\": {\n              \"Volume\": 100.0\n            }\n          },\n          \"taskDuration\": {\n            \"seconds\": 300\n          },\n          \"timeWindow\": {\n            \"start\": {\n              \"epoch\": 1455354000\n            },\n            \"end\": {\n              \"epoch\": 1455364800\n            }\n          },\n          \"difficulty\": 0\n        }\n      ]\n    },\n    {\n      \"type\": \"Route\",\n      \"driver\": {\n        \"id\": \"d2\",\n        \"maxCapacity\": {\n          \"data\": {\n            \"Volume\": 1000000.0\n          }\n        },\n        \"startLocation\": {\n          \"labels\": [],\n          \"x\": 128.1,\n          \"y\": 37.1\n        },\n        \"endLocation\": {\n          \"labels\": [],\n          \"x\": 128.1,\n          \"y\": 37.1\n        },\n        \"startTime\": {\n          \"epoch\": 1455340000\n        },\n        \"endTime\": {\n          \"epoch\": 1455370000\n        },\n        \"skillLevel\": 0,\n        \"vehicleFeatures\": []\n      },\n      \"jobs\": [\n        {\n          \"id\": \"j2\",\n          \"tasks\": [\n            {\n              \"id\": \"t2\",\n              \"jobId\": \"j2\",\n              \"taskType\": \"DepotDelivery\",\n              \"location\": {\n                \"labels\": [],\n                \"x\": 126.9,\n                \"y\": 37.3\n              },\n              \"capacity\": {\n                \"data\": {\n                  \"Volume\": 100.0\n                }\n              },\n              \"taskDuration\": {\n                \"seconds\": 300\n              },\n              \"timeWindow\": {\n                \"start\": {\n                  \"epoch\": 1455354000\n                },\n                \"end\": {\n                  \"epoch\": 1455364800\n                }\n              },\n              \"difficulty\": 0\n            }\n          ],\n          \"partialOrder\": []\n        }\n      ],\n      \"tasks\": [\n        {\n          \"id\": \"t2\",\n          \"jobId\": \"j2\",\n          \"taskType\": \"DepotDelivery\",\n          \"location\": {\n            \"labels\": [],\n            \"x\": 126.9,\n            \"y\": 37.3\n          },\n          \"capacity\": {\n            \"data\": {\n              \"Volume\": 100.0\n            }\n          },\n          \"taskDuration\": {\n            \"seconds\": 300\n          },\n          \"timeWindow\": {\n            \"start\": {\n              \"epoch\": 1455354000\n            },\n            \"end\": {\n              \"epoch\": 1455364800\n            }\n          },\n          \"difficulty\": 0\n        }\n      ]\n    }\n  ]\n}"},{"name":"response - success","code":"2 route logs are inserted.","language":"text"},{"name":"response - error","language":"json","code":"{\n  \"error\": \"Failed to parse Json for [RouteLog]\",\n  \"errorCode\": \"4001\"\n}"}]},"method":"post","results":{"codes":[{"language":"text","status":"2XX","name":"","code":"{numRouteLogs} route logs are inserted."},{"name":"","code":"{\n  \"error\": String,\n  \"errorCode\": String\n}","language":"json","status":"4XX"}]},"settings":"576a36aadd4f320e0060b806","auth":"required","params":[{"_id":"57451c0ec067580e0056b08c","ref":"","in":"body","required":true,"desc":"An identifier for the set of the logs. Refer to \"Experience Mining\" section for more information.","default":"","type":"string","name":"expCode"},{"_id":"57451c0ec067580e0056b08b","ref":"","in":"body","required":true,"desc":"An array of route logs to add to the server. Refer to \"Data Schema\" and \"Experience Mining\" sections for more information.","default":"","type":"array_object","name":"routeLogs"},{"_id":"57a084371435850e00dfbc30","ref":"","in":"header","required":false,"desc":"An API key.","default":"","type":"string","name":"x-api-key"}],"url":"/log"},"isReference":false,"order":0,"body":"","excerpt":"Log given routes for rule minings","slug":"logging-the-routes","type":"endpoint","title":"/log"}

post/log

Log given routes for rule minings

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

expCode:
required
string
An identifier for the set of the logs. Refer to "Experience Mining" section for more information.
routeLogs:
required
array of objects
An array of route logs to add to the server. Refer to "Data Schema" and "Experience Mining" sections for more information.

Headers

x-api-key:
string
An API key.

Examples


Result Format


User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}