{"_id":"5714cd27b9061c0e00d122de","version":{"_id":"56d54a77075dfa0b00be98d8","__v":13,"project":"56d54a77075dfa0b00be98d5","createdAt":"2016-03-01T07:53:27.479Z","releaseDate":"2016-03-01T07:53:27.479Z","categories":["56d54a78075dfa0b00be98d9","56d6bbf046d19315000f8ea2","56d6bbfc46d19315000f8ea3","570cefd98da5b62b00d57e3c","571491a74007610e00c803ae","5714dcd837b7e00e00de5684","5715ea6ac016190e00f04272","5715f27fc016190e00f0429f","5715f7b9893cbe0e002d74da","5715f8c2c016190e00f042b8","5715fd49a9055c0e0015fbe7","57160c7e893cbe0e002d753a","5716136a893cbe0e002d7552"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"project":"56d54a77075dfa0b00be98d5","category":{"_id":"571491a74007610e00c803ae","project":"56d54a77075dfa0b00be98d5","version":"56d54a77075dfa0b00be98d8","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-04-18T07:49:59.276Z","from_sync":false,"order":10,"slug":"reporting","title":"Reporting"},"githubsync":"","parentDoc":null,"user":"56d548ba075dfa0b00be98d2","__v":13,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-04-18T12:03:51.481Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"[block:html]\n{\n  \"html\": \"<h3>GetReportTrip</h3>\"\n}\n[/block]\nWill provide a summary of trips traveled with start/stop location info, date and time etc. \nA log of the actual driving.\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Note\",\n  \"body\": \"You must specify at least one of `UnitId` or `KeyId`.\"\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \"<h4><b>Parameters</b></h4>\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Name\",\n    \"h-1\": \"Data type\",\n    \"h-2\": \"Note\",\n    \"h-3\": \"Note\",\n    \"0-0\": \"unitID\",\n    \"0-1\": \"String\\nOptional\",\n    \"0-2\": \"N/A\",\n    \"0-3\": \"Unit Id to request summary for.\",\n    \"1-0\": \"keyID\",\n    \"1-1\": \"String\\nOptional\",\n    \"1-3\": \"Key Id to request summary for.\",\n    \"1-2\": \"N/A\",\n    \"2-0\": \"dateFrom<span style=\\\"color:red\\\">*</span>\",\n    \"2-1\": \"DateTime\\nRequired\",\n    \"2-2\": \"UTC\",\n    \"3-0\": \"dateTo<span style=\\\"color:red\\\">*</span>\",\n    \"3-1\": \"DateTime\\nRequired\",\n    \"3-2\": \"UTC\",\n    \"2-3\": \"Date that we request summary for.\",\n    \"3-3\": \"Similar to `DateFrom`\"\n  },\n  \"cols\": 4,\n  \"rows\": 4\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \"<h4><b>Columns</b></h4>\"\n}\n[/block]\nRefer to the following table for description of columns:\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Name\",\n    \"h-1\": \"Date type\",\n    \"h-2\": \"Unit of measurement\",\n    \"0-3\": \"FALSE\",\n    \"h-3\": \"Nullability\",\n    \"h-4\": \"Note\",\n    \"0-0\": \"`unitId`\",\n    \"0-1\": \"String\",\n    \"0-2\": \"N/A\",\n    \"0-4\": \"Unique identifier, unit.\",\n    \"1-0\": \"`keyId`\",\n    \"1-1\": \"String\",\n    \"1-2\": \"N/A\",\n    \"1-3\": \"TRUE\",\n    \"1-4\": \"Unique identifier, key.\",\n    \"2-0\": \"`startTime`\",\n    \"2-1\": \"DateTime\",\n    \"2-2\": \"UTC\",\n    \"2-3\": \"FALSE\",\n    \"3-0\": \"`startLocation`\",\n    \"3-1\": \"Location\",\n    \"3-2\": \"N/A\",\n    \"3-3\": \"TRUE\",\n    \"4-0\": \"`startAddress`\",\n    \"4-1\": \"Address\",\n    \"4-2\": \"N/A\",\n    \"4-3\": \"TRUE\",\n    \"5-0\": \"`startKm`\",\n    \"5-1\": \"Double\",\n    \"5-2\": \"Km\",\n    \"5-3\": \"FALSE\",\n    \"6-0\": \"`startRun1`\",\n    \"6-1\": \"DateTime\",\n    \"6-2\": \"UTC\",\n    \"6-3\": \"FALSE\",\n    \"7-0\": \"`stopTime`\",\n    \"7-1\": \"DateTime\",\n    \"7-2\": \"UTC\",\n    \"7-3\": \"FALSE\",\n    \"8-0\": \"`stopLocation`\",\n    \"8-1\": \"Location\",\n    \"8-2\": \"N/A\",\n    \"8-3\": \"TRUE\",\n    \"9-0\": \"`stopAddress`\",\n    \"9-1\": \"Address\",\n    \"9-2\": \"N/A\",\n    \"9-3\": \"TRUE\",\n    \"10-0\": \"`stopKm`\",\n    \"10-1\": \"Double\",\n    \"10-2\": \"Km\",\n    \"10-3\": \"FALSE\",\n    \"11-0\": \"`stopRun1`\",\n    \"11-1\": \"Double\",\n    \"11-2\": \"Second\",\n    \"11-3\": \"FALSE\",\n    \"12-0\": \"`finished`\",\n    \"12-1\": \"Bool\",\n    \"12-2\": \"N/A\",\n    \"12-3\": \"FALSE\",\n    \"13-0\": \"maxSpeed\",\n    \"13-1\": \"Double\",\n    \"13-2\": \"Km/h\",\n    \"13-3\": \"TRUE\"\n  },\n  \"cols\": 5,\n  \"rows\": 14\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \"<h4><b>Request (example)</b></h4>\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n   \\\"unitId\\\": \\\"46209\\\",\\n   \\\"dateFrom\\\": \\\"2013-08-05T07:00:00.0000000\\\",\\n   \\\"dateTo\\\": \\\"2013-08-06T07:00:00.0000000\\\"\\n} \",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \"<h4><b>Response</b></h4>\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n           \\\"list\\\":[\\n              {\\n                 \\\"unitId\\\": \\\"46209\\\",\\n                 \\\"startTime\\\":\\\" 2013-08-05T07:26:07.0000000\\\",\\n                 \\\"startLocation\\\":{\\n                    \\\"latitude\\\": 56.0380633333333,\\n                    \\\"longitude\\\": 12.6013966666667\\n                 },\\n                 \\\"startAddress\\\":{\\n                    \\\"country\\\": \\\"DK\\\",\\n                    \\\"zipCode\\\": \\\"3000\\\",\\n                    \\\"city\\\": \\\"Helsingør\\\",\\n                    \\\"streetAddress\\\": \\\"Esrumvej 9A\\\"\\n                 },\\n                 \\\"startKm\\\": 12959,\\n                 \\\"startRun1\\\": 0,\\n                 \\\"stopTime\\\": \\\"2013-08-05T07:30:18.0000000\\\",\\n                 \\\"stopLocation\\\":{\\n                    \\\"latitude\\\": 56.0453933333333,\\n                    \\\"longitude\\\": 12.5890566666667\\n                 },\\n                 \\\"stopAddress\\\":{\\n                    \\\"country\\\": \\\"DK\\\",\\n                    \\\"zipCode\\\": \\\"3000\\\",\\n                    \\\"city\\\": \\\"Helsingør\\\",\\n                    \\\"streetAddress\\\": \\\"Tårnhøjvej 6\\\"\\n                 },\\n                 \\\"stopKm\\\": 12961,\\n                 \\\"stopRun1\\\": 0,\\n                 \\\"finished\\\": true,\\n                 \\\"maxSpeed\\\": 33.336\\n              },\\n              {\\n                 \\\"unitId\\\": \\\"46209\\\",\\n                 \\\"startTime\\\": \\\"2013-08-05T07:35:36.0000000\\\",\\n                 \\\"startLocation\\\":{\\n                    \\\"latitude\\\": 56.04539,\\n                    \\\"longitude\\\": 12.5891783333333\\n                 },\\n                 \\\"startAddress\\\":{\\n                    \\\"country\\\": \\\"DK\\\",\\n                    \\\"zipCode\\\": \\\"3000\\\",\\n                    \\\"city\\\": \\\"Helsingør\\\",\\n                    \\\"streetAddress\\\": \\\"Tårnhøjvej 6\\\"\\n                 },\\n                 \\\"startKm\\\": 12961,\\n                 \\\"startRun1\\\": 0,\\n                 \\\"stopTime\\\": \\\"2013-08-05T07:40:15.0000000\\\",\\n                 \\\"stopLocation\\\":{\\n                    \\\"latitude\\\": 56.0370916666667,\\n                    \\\"longitude\\\": 12.580795\\n                 },\\n                 \\\"stopAddress\\\":{\\n                    \\\"country\\\": \\\"DK\\\",\\n                    \\\"zipCode\\\": \\\"3000\\\",\\n                    \\\"city\\\": \\\"Helsingør\\\",\\n                    \\\"streetAddress\\\": \\\"Blichersvej 33\\\"\\n                 },\\n                 \\\"stopKm\\\": 12963,\\n                 \\\"stopRun1\\\": 0,\\n                 \\\"finished\\\": true,\\n                 \\\"maxSpeed\\\": 40.744\\n              },\\n              {\\n                 \\\"unitId\\\": \\\"46209\\\",\\n                 \\\"startTime\\\": \\\"2013-08-06T05:40:18.0000000\\\",\\n                 \\\"startLocation\\\":{\\n                    \\\"latitude\\\": 56.037205,\\n                    \\\"longitude\\\": 12.5807183333333\\n                 },\\n                 \\\"startAddress\\\":{\\n                    \\\"country\\\": \\\"DK\\\",\\n                    \\\"zipCode\\\": \\\"3000\\\",\\n                    \\\"city\\\": \\\"Helsingør\\\",\\n                    \\\"streetAddress\\\": \\\"Blichersvej 33\\\"\\n                 },\\n                 \\\"startKm\\\": 12963,\\n                 \\\"startRun1\\\": 0,\\n                 \\\"stopTime\\\": \\\"2013-08-06T05:45:39.0000000\\\",\\n                 \\\"stopLocation\\\":{\\n                    \\\"latitude\\\": 56.02579,\\n                    \\\"longitude\\\": 12.5709166666667\\n                 },\\n                 \\\"stopAddress\\\":{\\n                    \\\"country\\\": \\\"DK\\\",\\n                    \\\"zipCode\\\": \\\"3000\\\",\\n                    \\\"city\\\": \\\"Helsingør\\\",\\n                    \\\"streetAddress\\\": \\\"H P Christensens Vej 4A\\\"\\n                 },\\n                 \\\"stopKm\\\": 12966,\\n                 \\\"stopRun1\\\": 0,\\n                 \\\"finished\\\": true,\\n                 \\\"maxSpeed\\\": 72.228\\n              },\\n              {\\n                 \\\"unitId\\\": \\\"46209\\\",\\n                 \\\"startTime\\\": \\\"2013-08-06T06:08:57.0000000\\\",\\n                 \\\"startLocation\\\":{\\n                    \\\"latitude\\\": 56.025885,\\n                    \\\"longitude\\\": 12.57114\\n                 },\\n                 \\\"startAddress\\\":{\\n                    \\\"country\\\": \\\"DK\\\",\\n                    \\\"zipCode\\\": \\\"3000\\\",\\n                    \\\"city\\\": \\\"Helsingør\\\",\\n                    \\\"streetAddress\\\": \\\"H P Christensens Vej 4B\\\"\\n                 },\\n                 \\\"startKm\\\": 12966,\\n                 \\\"startRun1\\\": 0,\\n                 \\\"stopTime\\\": \\\"2013-08-06T06:25:31.0000000\\\",\\n                 \\\"stopLocation\\\":{\\n                    \\\"latitude\\\": 55.9742283333333,\\n                    \\\"longitude\\\": 12.411285\\n                 },\\n                 \\\"stopAddress\\\":{\\n                    \\\"country\\\": \\\"DK\\\",\\n                    \\\"zipCode\\\": \\\"3480\\\",\\n                    \\\"city\\\": \\\"Fredensborg\\\",\\n                    \\\"streetAddress\\\": \\\"Hammersvej 15\\\"\\n                 },\\n                 \\\"stopKm\\\": 12981,\\n                 \\\"stopRun1\\\": 0,\\n                 \\\"finished\\\": true,\\n                 \\\"maxSpeed\\\": 125.936\\n              }\\n           ]\\n }\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"A **Report** is essentially a summary of data over a particular period of time. \nA summary could for instance be based on driving data (trips), or the usage of access keys.\n\nURL Structure is:\n`https://api.trackunit.com/public/Report/Trip`","slug":"trip","type":"basic","title":"Trip"}

Trip

A **Report** is essentially a summary of data over a particular period of time. A summary could for instance be based on driving data (trips), or the usage of access keys. URL Structure is: `https://api.trackunit.com/public/Report/Trip`

[block:html] { "html": "<h3>GetReportTrip</h3>" } [/block] Will provide a summary of trips traveled with start/stop location info, date and time etc. A log of the actual driving. [block:callout] { "type": "info", "title": "Note", "body": "You must specify at least one of `UnitId` or `KeyId`." } [/block] [block:html] { "html": "<h4><b>Parameters</b></h4>" } [/block] [block:parameters] { "data": { "h-0": "Name", "h-1": "Data type", "h-2": "Note", "h-3": "Note", "0-0": "unitID", "0-1": "String\nOptional", "0-2": "N/A", "0-3": "Unit Id to request summary for.", "1-0": "keyID", "1-1": "String\nOptional", "1-3": "Key Id to request summary for.", "1-2": "N/A", "2-0": "dateFrom<span style=\"color:red\">*</span>", "2-1": "DateTime\nRequired", "2-2": "UTC", "3-0": "dateTo<span style=\"color:red\">*</span>", "3-1": "DateTime\nRequired", "3-2": "UTC", "2-3": "Date that we request summary for.", "3-3": "Similar to `DateFrom`" }, "cols": 4, "rows": 4 } [/block] [block:html] { "html": "<h4><b>Columns</b></h4>" } [/block] Refer to the following table for description of columns: [block:parameters] { "data": { "h-0": "Name", "h-1": "Date type", "h-2": "Unit of measurement", "0-3": "FALSE", "h-3": "Nullability", "h-4": "Note", "0-0": "`unitId`", "0-1": "String", "0-2": "N/A", "0-4": "Unique identifier, unit.", "1-0": "`keyId`", "1-1": "String", "1-2": "N/A", "1-3": "TRUE", "1-4": "Unique identifier, key.", "2-0": "`startTime`", "2-1": "DateTime", "2-2": "UTC", "2-3": "FALSE", "3-0": "`startLocation`", "3-1": "Location", "3-2": "N/A", "3-3": "TRUE", "4-0": "`startAddress`", "4-1": "Address", "4-2": "N/A", "4-3": "TRUE", "5-0": "`startKm`", "5-1": "Double", "5-2": "Km", "5-3": "FALSE", "6-0": "`startRun1`", "6-1": "DateTime", "6-2": "UTC", "6-3": "FALSE", "7-0": "`stopTime`", "7-1": "DateTime", "7-2": "UTC", "7-3": "FALSE", "8-0": "`stopLocation`", "8-1": "Location", "8-2": "N/A", "8-3": "TRUE", "9-0": "`stopAddress`", "9-1": "Address", "9-2": "N/A", "9-3": "TRUE", "10-0": "`stopKm`", "10-1": "Double", "10-2": "Km", "10-3": "FALSE", "11-0": "`stopRun1`", "11-1": "Double", "11-2": "Second", "11-3": "FALSE", "12-0": "`finished`", "12-1": "Bool", "12-2": "N/A", "12-3": "FALSE", "13-0": "maxSpeed", "13-1": "Double", "13-2": "Km/h", "13-3": "TRUE" }, "cols": 5, "rows": 14 } [/block] [block:html] { "html": "<h4><b>Request (example)</b></h4>" } [/block] [block:code] { "codes": [ { "code": "{\n \"unitId\": \"46209\",\n \"dateFrom\": \"2013-08-05T07:00:00.0000000\",\n \"dateTo\": \"2013-08-06T07:00:00.0000000\"\n} ", "language": "json" } ] } [/block] [block:html] { "html": "<h4><b>Response</b></h4>" } [/block] [block:code] { "codes": [ { "code": "{\n \"list\":[\n {\n \"unitId\": \"46209\",\n \"startTime\":\" 2013-08-05T07:26:07.0000000\",\n \"startLocation\":{\n \"latitude\": 56.0380633333333,\n \"longitude\": 12.6013966666667\n },\n \"startAddress\":{\n \"country\": \"DK\",\n \"zipCode\": \"3000\",\n \"city\": \"Helsingør\",\n \"streetAddress\": \"Esrumvej 9A\"\n },\n \"startKm\": 12959,\n \"startRun1\": 0,\n \"stopTime\": \"2013-08-05T07:30:18.0000000\",\n \"stopLocation\":{\n \"latitude\": 56.0453933333333,\n \"longitude\": 12.5890566666667\n },\n \"stopAddress\":{\n \"country\": \"DK\",\n \"zipCode\": \"3000\",\n \"city\": \"Helsingør\",\n \"streetAddress\": \"Tårnhøjvej 6\"\n },\n \"stopKm\": 12961,\n \"stopRun1\": 0,\n \"finished\": true,\n \"maxSpeed\": 33.336\n },\n {\n \"unitId\": \"46209\",\n \"startTime\": \"2013-08-05T07:35:36.0000000\",\n \"startLocation\":{\n \"latitude\": 56.04539,\n \"longitude\": 12.5891783333333\n },\n \"startAddress\":{\n \"country\": \"DK\",\n \"zipCode\": \"3000\",\n \"city\": \"Helsingør\",\n \"streetAddress\": \"Tårnhøjvej 6\"\n },\n \"startKm\": 12961,\n \"startRun1\": 0,\n \"stopTime\": \"2013-08-05T07:40:15.0000000\",\n \"stopLocation\":{\n \"latitude\": 56.0370916666667,\n \"longitude\": 12.580795\n },\n \"stopAddress\":{\n \"country\": \"DK\",\n \"zipCode\": \"3000\",\n \"city\": \"Helsingør\",\n \"streetAddress\": \"Blichersvej 33\"\n },\n \"stopKm\": 12963,\n \"stopRun1\": 0,\n \"finished\": true,\n \"maxSpeed\": 40.744\n },\n {\n \"unitId\": \"46209\",\n \"startTime\": \"2013-08-06T05:40:18.0000000\",\n \"startLocation\":{\n \"latitude\": 56.037205,\n \"longitude\": 12.5807183333333\n },\n \"startAddress\":{\n \"country\": \"DK\",\n \"zipCode\": \"3000\",\n \"city\": \"Helsingør\",\n \"streetAddress\": \"Blichersvej 33\"\n },\n \"startKm\": 12963,\n \"startRun1\": 0,\n \"stopTime\": \"2013-08-06T05:45:39.0000000\",\n \"stopLocation\":{\n \"latitude\": 56.02579,\n \"longitude\": 12.5709166666667\n },\n \"stopAddress\":{\n \"country\": \"DK\",\n \"zipCode\": \"3000\",\n \"city\": \"Helsingør\",\n \"streetAddress\": \"H P Christensens Vej 4A\"\n },\n \"stopKm\": 12966,\n \"stopRun1\": 0,\n \"finished\": true,\n \"maxSpeed\": 72.228\n },\n {\n \"unitId\": \"46209\",\n \"startTime\": \"2013-08-06T06:08:57.0000000\",\n \"startLocation\":{\n \"latitude\": 56.025885,\n \"longitude\": 12.57114\n },\n \"startAddress\":{\n \"country\": \"DK\",\n \"zipCode\": \"3000\",\n \"city\": \"Helsingør\",\n \"streetAddress\": \"H P Christensens Vej 4B\"\n },\n \"startKm\": 12966,\n \"startRun1\": 0,\n \"stopTime\": \"2013-08-06T06:25:31.0000000\",\n \"stopLocation\":{\n \"latitude\": 55.9742283333333,\n \"longitude\": 12.411285\n },\n \"stopAddress\":{\n \"country\": \"DK\",\n \"zipCode\": \"3480\",\n \"city\": \"Fredensborg\",\n \"streetAddress\": \"Hammersvej 15\"\n },\n \"stopKm\": 12981,\n \"stopRun1\": 0,\n \"finished\": true,\n \"maxSpeed\": 125.936\n }\n ]\n }", "language": "json" } ] } [/block]