Get Specific Routes/Schedules Detail API
Require Authentication
This API is used to get specific routes/schedules detailed information for the company based on combination of deviceID and token.
URL
api/routes/detail/:maintenanceScheduleID
Required parameter (in URL)
- :maintenanceScheduleID «contains maintenanceScheduleID that want to be looked for. It must be put in the URL, e.g: api/routes/detail/1»
Required parameter (POST)
- deviceID
- token
Optional parameter
Example JSON Payload
{ "deviceID": "ABCD-EFGH-IJKL-MNOP", "token": "bb602ab13b8090268cd6e3bb9dfa39e2" }
Possible return HTTP status code
- 200
- 401
- 404
- 405
Return message
{ "status": "success", "message": { "maintenanceScheduleID": 1, "maintenanceScheduleName": "One time eid", "startDate": 1473107580, "endDate": 1473439620, "defaultStartCoordinates_address1": "Jalan Panjang Alteri Kedoya 19C", "defaultStartCoordinates_address2": "", "defaultStartCoordinates_city": "Kota Jakarta Barat", "defaultStartCoordinates_state": "Daerah Khusus Ibukota Jakarta", "defaultStartCoordinates_country": "ID", "defaultStartCoordinates_postcode": "11530", "defaultStartCoordinates_latitude": -6.202293395996, "defaultStartCoordinates_longitude": 106.76934051514, "defaultEndCoordinates_address1": "Jalan Sulaiman 50-67", "defaultEndCoordinates_address2": "", "defaultEndCoordinates_city": "Kota Jakarta Barat", "defaultEndCoordinates_state": "Daerah Khusus Ibukota Jakarta", "defaultEndCoordinates_country": "ID", "defaultEndCoordinates_postcode": "11540", "defaultEndCoordinates_latitude": -6.206111907959, "defaultEndCoordinates_longitude": 106.77803039551, "optimized": "Y", "recurring": "Y", "recurringIntervalSeconds": 86400, "note": "notes", "maxCoveredRadius_meters": 1000, "createdDate": 1472723208, "updatedDate": 1473180764, "createdByUserID": 3, "updatedByUserID": 3, "errorMessage": "", "vehicle": { "vehicleID": 2, "vehicleName": "REDDY", "vehicleType": "KIA", "vehicleNo": "N1929CJ", "vehicleDescription": "SOLD THIS YEAR", "vehicleColor": "RED", "vehicleYear": 2003 }, "drivers": [ { "userID": 5, "username": "driver@driver.com", "firstName": "Driver", "lastName": "", "phone": "", "mobile": "", "active": "Y" } ], "avoid": [ "tolls", "highways" ], "parameters": { "projects": [ { "projectID": 1, "projectName": "TEst without icon in the kost", "projectAddress1": "Anggrek Cakra 12", "projectAddress2": "", "projectCity": "Jakarta Barat", "projectState": "", "projectCountry": "ID", "projectZipCode": "", "projectLatitude": -6.202315807343, "projectLongitude": 106.78104400635 }, { "projectID": 2, "projectName": "edited by API", "projectAddress1": "Bina Nusantara University", "projectAddress2": "Jalan KH. Syahdan", "projectCity": "Jakarta Barat", "projectState": "", "projectCountry": "", "projectZipCode": "", "projectLatitude": -6.200723171234, "projectLongitude": 106.78497314453 }, { "projectID": 5, "projectName": "TEst without icon in the kost dupli", "projectAddress1": "Anggrek Cakra 12", "projectAddress2": "", "projectCity": "Jakarta Barat", "projectState": "", "projectCountry": "ID", "projectZipCode": "", "projectLatitude": -6.202315807343, "projectLongitude": 106.78104400635 } ], "projectgroup": [ { "projectgroupID": 1, "projectID": 1, "groupName": "Test Group" } ], "pintypes": [ { "pintypeID": 1, "pinTypeName": "Pin Custom", "pinSize": "100", "depthWhenEmpty_cm": 0 }, { "pintypeID": 2, "pinTypeName": "test pin type API", "pinSize": "", "depthWhenEmpty_cm": 1000 }, { "pintypeID": 3, "pinTypeName": "type with tags", "pinSize": "", "depthWhenEmpty_cm": 0 } ], "pinstags": [ { "pinstagsID": 1, "tags_text": "tags" }, { "pinstagsID": 5, "tags_text": "tags api" } ], "projectpins": [ { "projectpinID": 1, "name": "Pin Custom", "serialNumber": "", "projectID": 1, "pintypeID": 1, "customlocationID": 1, "manufacturerID": 0, "pinAddress1": "Jalan Anggrek Cakra 6-12", "pinAddress2": "", "pinCity": "Kota Jakarta Barat", "pinState": "Daerah Khusus Ibukota Jakarta", "pinCountry": "Indonesia", "pinZipCode": "11530", "latitude": -6.20242357254, "longitude": 106.77905273438 }, { "projectpinID": 5, "name": "Pin Custom", "serialNumber": "", "projectID": 5, "pintypeID": 1, "customlocationID": 1, "manufacturerID": 0, "pinAddress1": "Jalan Anggrek Cakra 6-12", "pinAddress2": "", "pinCity": "Kota Jakarta Barat", "pinState": "Daerah Khusus Ibukota Jakarta", "pinCountry": "Indonesia", "pinZipCode": "11530", "latitude": -6.20242357254, "longitude": 106.77905273438 } ], "minimumbinlevel": 60 }, "total_execution": 0 } }