{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/trip/info.json","auth":"required","results":{"codes":[{"name":"","code":"{ \n \"tripInfoFeed\":{ \n \"code\":200,\n \"message\":\"Success\",\n \"reason\":null,\n \"generatedAtInMillis\":1487737077232,\n \"trips\":[ \n { \n \"vehicleId\":\"52533f0b-edcb-11e6-b1fe-f12f8295337b\",\n \"tsLat\":37.5211929,\n \"tsLon\":-120.721411,\n \"tsAddress\":\"1240 Hall Rd, Denair, CA 95316, USA\",\n \"tsTime\":1487676639000,\n \"teTime\":1487678133000,\n \"tsFixQuality\":0,\n \"teFixQuality\":0,\n \"teLat\":37.5211929,\n \"teLon\":-120.721411,\n \"teAddress\":\"1240 Hall Rd, Denair, CA 95316, USA\",\n \"distanceTravelled\":50,\n \"overSpeedCount\":1,\n \"hardBreakingCount\":1,\n \"hardCoreBrakeCount\":0,\n \"hardAccelerationCount\":1,\n \"fuelConsumed\":15.234,\n \"tripIdleTime\":\"00:00:10\",\n \"id\":\"24E127E21DF48F0463EC1298D98DBE65\",\n \"vehicleName\":\"9874564132\",\n \"maxSpeed\":150,\n \"avgSpeed\":70,\n \"idlingCount\":0,\n \"serialNum\":\"9874564132\",\n \"tripTagIds\":null,\n \"tags\":null\n },\n { \n \"vehicleId\":\"52533f0b-edcb-11e6-b1fe-f12f8295337b\",\n \"tsLat\":37.5211929,\n \"tsLon\":-120.721411,\n \"tsAddress\":\"1240 Hall Rd, Denair, CA 95316, USA\",\n \"tsTime\":1487678623000,\n \"teTime\":1487678679000,\n \"tsFixQuality\":0,\n \"teFixQuality\":0,\n \"teLat\":37.5211929,\n \"teLon\":-120.721411,\n \"teAddress\":\"1240 Hall Rd, Denair, CA 95316, USA\",\n \"distanceTravelled\":50,\n \"overSpeedCount\":1,\n \"hardBreakingCount\":1,\n \"hardCoreBrakeCount\":0,\n \"hardAccelerationCount\":1,\n \"fuelConsumed\":15.234,\n \"tripIdleTime\":\"00:00:10\",\n \"id\":\"2CA12392110D267FA5A6FA4771E5E7C7\",\n \"vehicleName\":\"9874564132\",\n \"maxSpeed\":150,\n \"avgSpeed\":70,\n \"idlingCount\":0,\n \"serialNum\":\"9874564132\",\n \"tripTagIds\":null,\n \"tags\":null\n },\n { \n \"vehicleId\":\"f6abf571-edca-11e6-a7f0-bf7cd1892645\",\n \"tsLat\":37.5211929,\n \"tsLon\":-120.721411,\n \"tsAddress\":\"1240 Hall Rd, Denair, CA 95316, USA\",\n \"tsTime\":1487666297000,\n \"teTime\":1487666325000,\n \"tsFixQuality\":0,\n \"teFixQuality\":0,\n \"teLat\":37.5211929,\n \"teLon\":-120.721411,\n \"teAddress\":\"1240 Hall Rd, Denair, CA 95316, USA\",\n \"distanceTravelled\":50,\n \"overSpeedCount\":1,\n \"hardBreakingCount\":1,\n \"hardCoreBrakeCount\":0,\n \"hardAccelerationCount\":1,\n \"fuelConsumed\":15.234,\n \"tripIdleTime\":\"00:00:10\",\n \"id\":\"FC7C19BDE34BCB309A91C6A4364462B2\",\n \"vehicleName\":\"1452654765\",\n \"maxSpeed\":150,\n \"avgSpeed\":70,\n \"idlingCount\":0,\n \"serialNum\":\"1452654765\",\n \"tripTagIds\":null,\n \"tags\":null\n }\n ]\n }\n}","language":"json","status":200}]},"settings":"559288b86bf22f170075b794","examples":{"codes":[]},"method":"get","params":[{"name":"fromDate","type":"string","default":"","desc":"Trip start timestamp (GMT) in milliseconds","required":true,"in":"query","ref":"","_id":"56418f5503881c0d00ac215c"},{"name":"toDate","type":"string","default":"","desc":"Trip end timestamp (GMT) in milliseconds","required":true,"in":"query","ref":"","_id":"56418f5503881c0d00ac215b"}]},"next":{"description":"","pages":[]},"title":"Trip Information","type":"endpoint","slug":"trip-info","excerpt":"This API provides you with information about all the trips taken for a requested period of time. A trip in Azuga is defined as an ignition on - ignition off cycle. This API recognizes all the locations traversed and the activities of the fleet during those trips.","body":"[block:callout]\n{\n \"type\": \"info\",\n \"title\": \"Sample Request\",\n \"body\": \"https://api.azuga.com/azuga-ws/v1/trip/info.json?fromDate=1487562869000&toDate=1487661984000\"\n}\n[/block]\n##API Response explanation\n[block:parameters]\n{\n \"data\": {\n \"h-0\": \"Field\",\n \"h-1\": \"Description\",\n \"0-0\": \"code\",\n \"1-0\": \"message\",\n \"3-0\": \"generatedAtInMillis\",\n \"0-1\": \"API Status Code\",\n \"1-1\": \"API Message\",\n \"3-1\": \"API generation timestamp in milliseconds\",\n \"2-0\": \"reason\",\n \"2-1\": \"Reason for failure\",\n \"4-0\": \"trips\",\n \"5-0\": \"vehicleId\",\n \"6-0\": \"tsLat\",\n \"7-0\": \"tsLon\",\n \"8-0\": \"tsAddress\",\n \"9-0\": \"tsTime\",\n \"10-0\": \"teTime\",\n \"11-0\": \"tsFixQuality\",\n \"12-0\": \"teFixQuality\",\n \"13-0\": \"teLat\",\n \"14-0\": \"teLon\",\n \"15-0\": \"teAddress\",\n \"16-0\": \"distanceTravelled\",\n \"17-0\": \"overSpeedCount\",\n \"18-0\": \"hardBreakingCount\",\n \"19-0\": \"hardCoreBrakeCount\",\n \"20-0\": \"hardAccelerationCount\",\n \"21-0\": \"fuelConsumed\",\n \"22-0\": \"tripIdleTime\",\n \"23-0\": \"id\",\n \"24-0\": \"vehicleName\",\n \"25-0\": \"maxSpeed\",\n \"26-0\": \"avgSpeed\",\n \"27-0\": \"idlingCount\",\n \"4-1\": \"An array of trip objects\",\n \"5-1\": \"Unique identifier of the vehicle\",\n \"6-1\": \"Latitude coordinate of the trip start location\",\n \"7-1\": \"Longitude coordinate of the trip start location\",\n \"8-1\": \"Address of the trip start location\",\n \"9-1\": \"Trip start timestamp in milliseconds\",\n \"10-1\": \"Trip end timestamp in milliseconds\",\n \"14-1\": \"Longitude coordinate of the trip end location\",\n \"13-1\": \"Latitude coordinate of the trip end location\",\n \"15-1\": \"Address of the trip end location\",\n \"16-1\": \"Distance covered for the trip\",\n \"17-1\": \"Number of speeding incidents\",\n \"18-1\": \"Number of hard braking incidents\",\n \"19-1\": \"Number of hard core braking incidents\",\n \"20-1\": \"Number of hard acceleration incidents\",\n \"21-1\": \"Total fuel consumed for the trip\",\n \"22-1\": \"Idling time during the trip\",\n \"24-1\": \"Name of the vehicle\",\n \"25-1\": \"Max speed attained during the trip\",\n \"26-1\": \"Average speed during the trip\",\n \"27-1\": \"Number of idling incidents\",\n \"23-1\": \"Unique identifier representing the trip\",\n \"11-1\": \"Fix quality of the starting location\",\n \"12-1\": \"Fix quality of the ending location\",\n \"28-0\": \"serialNum\",\n \"29-0\": \"tripTagIds\",\n \"30-0\": \"tags\",\n \"28-1\": \"Serial number of the device\",\n \"29-1\": \"Unique identifier representing the tag assigned to this trip\",\n \"30-1\": \"Tag assigned to this trip\"\n },\n \"cols\": 2,\n \"rows\": 31\n}\n[/block]\n\n[block:callout]\n{\n \"type\": \"warning\",\n \"body\": \"This API provides information only for a driver and does not provide aggregated information for a group of vehicles. Admins should not use these APIs, but should look at other sections of the documentation.\",\n \"title\": \"Disclaimer\"\n}\n[/block]","updates":[],"order":10,"isReference":true,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"56418e30b0dc090d00f883a6","editedParams":true,"__v":4,"category":{"sync":{"isSync":false,"url":""},"pages":["55928fd16bf22f170075b7b4","5592bd5a6bf22f170075b851","56416d6803881c0d00ac214b","5641702a03881c0d00ac214d","56417262b0dc090d00f88396","5641748f9f4ed50d008be04d","56417a76f424a10d00118215","56417c7b9417b40d00c0fbc6","56417f7f9417b40d00c0fbca","5641803203881c0d00ac2153","5641842903881c0d00ac2155","56418c259f4ed50d008be062","56418e30b0dc090d00f883a6","564192599417b40d00c0fbd1","564195c403881c0d00ac2162","5641988502fe811900f076c3","5641b8dc03881c0d00ac217c","5641c06238e37e0d0049fe6b","5656e88da795770d00a2aee0"],"title":"MOBILE","slug":"fleet-mobile","order":1,"from_sync":false,"reference":true,"_id":"55928a98c39c4b2d00127a83","version":"559286c6c39c4b2d00127a71","project":"55926c913735880d005f7c65","__v":19,"createdAt":"2015-06-30T12:24:56.461Z"},"editedParams2":true,"version":{"version":"1","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["559286c7c39c4b2d00127a72","55928a98c39c4b2d00127a83","5592bd7b9a68220d00f1c3db","5593dcaf0e82e81700334e25","5594342f0c33bd0d000595a3","563081713998420d00a509e4","5630941c7581b80d00c51c86","56309f4ff1c0580d00fac666","567923b8239fac0d00c7df25","573306dea6a9c40e00e13875","577a288fd051530e00f65563","579af3982b865e17005a4357","57ee06aa1e42900e0014a374","5951f49a63f39000159e7ef1","5951f4c563f39000159e7ef2","598951542a9dfc000fcacd40","5b3375cc98cb500003e4b363","5bbcd4e29667280003084100"],"_id":"559286c6c39c4b2d00127a71","createdAt":"2015-06-30T12:08:38.768Z","project":"55926c913735880d005f7c65","releaseDate":"2015-06-30T12:08:38.768Z","__v":18,"forked_from":"559286b6c39c4b2d00127a6e"},"githubsync":"","project":"55926c913735880d005f7c65","createdAt":"2015-11-10T06:26:56.677Z","parentDoc":null,"user":"55926c39cf9cdb2100b57022"}
getTrip Information
This API provides you with information about all the trips taken for a requested period of time. A trip in Azuga is defined as an ignition on - ignition off cycle. This API recognizes all the locations traversed and the activities of the fleet during those trips.
Definition
{{ api_url }}{{ page_api_url }}
Parameters
Query Params
fromDate:
required
string
Trip start timestamp (GMT) in milliseconds
toDate:
required
string
Trip end timestamp (GMT) in milliseconds