Superfy Platform API Documentation


Get Processed Route/Schedule Detail API

Require Authentication

This API is used to get processed route/schedule detail for the company based on combination of deviceID and token.


URL

api/routes/processeddetail

Required parameter (POST)

Optional parameter

Example JSON Payload

{
	"deviceID": "ABCD-EFGH-IJKL-MNOP",
	"token": "bb602ab13b8090268cd6e3bb9dfa39e2",
	"maintenanceScheduleProcessID": 5949
}

Possible return HTTP status code

Return message

{
  "status": "success",
  "message": {
    "scheduleprocess": {
      "maintenanceScheduleProcessID": 5949,
      "maintenanceScheduleID": 2489,
      "estimateDurationSeconds": 1396,
      "estimateDistanceMeters": 5913,
      "processTime": 1669946905,
      "previewOnly": "N",
      "startLatitude": -6.154994010925,
      "startLongitude": 106.80372619629,
      "startAddress1": "",
      "startAddress2": "",
      "startCity": "",
      "startState": "",
      "startCountry": "",
      "startPostcode": "",
      "endLatitude": -6.164274215698,
      "endLongitude": 106.80966949463,
      "endAddress1": "",
      "endAddress2": "",
      "endCity": "",
      "endState": "",
      "endCountry": "",
      "endPostcode": "",
      "mapPolylineAll": [
        "leqd@mc{jSFHBF?B?D@@BB?@?B?@D?@?D?NAH?v@?@?n@@x@B\\?Z?L?",
        "rnqd@_b{jSAU?QCi@Ak@C{@GuA?E?ECy@AcA?IEo@",
        "rmqd@sp{jSnBQ",
        "bqqd@eq{jSx@GTCJA@?^?FA",
        "huqd@uq{jS`ABH?",
        "twqd@qq{jSAQ@AA[",
        "rwqd@as{jS@ZA@@P",
        "twqd@qq{jSfAA",
        "|yqd@sq{jS?_DCS",
        "xyqd@gw{jS}AH",
        "zvqd@}v{jS|AI",
        "xyqd@gw{jSBR?~C",
        "|yqd@sq{jSgA@I?aACG@_@?A?K@UBI?",
        "rrqd@mq{jSo@FoBP",
        "rmqd@sp{jSGg@A[Co@AYG}BGuC",
        "rlqd@u}{jS?KxAAnA?xAE`BE",
        "xwqd@o~{jS?o@",
        "xwqd@_`|jS?n@",
        "xwqd@o~{jSN?b@Ap@@\\?RAtA@dABB?`@@f@@dBFr@Dx@BZ@N?hBA\\?zBC|AEx@CT?x@?dBEjAA",
        "x`sd@k~{jSL?d@AhCED?",
        "|fsd@s~{jSAMImCCcA?WCu@CcAAW?SC{@Ci@EaAAc@AUK{BGmA?ACy@?ICeAA[As@CkBGaDAk@Ac@Cy@AOEc@E[C[QgBGk@CUAM?EAGe@sEKkAGw@Em@?CEo@?UG_A",
        "z_sd@sf~jSZEJbAFjA?HFv@@H?HRtB?J^|DNtAHx@?FH|@?FFl@?B@PBJ@`@Bj@?^@X?PBfB@PBxA",
        "lesd@w`}jS@Z@l@B~@F|ADrAH|BDp@@d@Bl@@d@",
        "zfsd@qm|jSjAGZAZAp@ClCIhAE",
        "hssd@qn|jS?z@aCHgADcAD}BJY@sA?}@E",
        "pasd@wk|jS}FKgCC",
        "jurd@gl|jS?\\?dA",
        "jurd@ci|jSjENxAB",
        "p~rd@oh|jS@^"
    ],
    "mapPolyline": [
      "leqd@mc{jSFHBF?B?D@@BB?@?B?@D?@?D?NAH?v@?@?n@@x@B\\?Z?L?",
      "rnqd@_b{jSAU?QCi@Ak@C{@GuA?E?ECy@AcA?IEo@",
      "rmqd@sp{jSnBQ",
      "bqqd@eq{jSx@GTCJA@?^?FA",
      "huqd@uq{jS`ABH?",
      "twqd@qq{jSAQ@AA[",
      "rwqd@as{jS@ZA@@P",
      "twqd@qq{jSfAA",
      "|yqd@sq{jS?_DCS",
      "xyqd@gw{jS}AH",
      "zvqd@}v{jS|AI",
      "xyqd@gw{jSBR?~C",
      "|yqd@sq{jSgA@I?aACG@_@?A?K@UBI?",
      "rrqd@mq{jSo@FoBP",
      "rmqd@sp{jSGg@A[Co@AYG}BGuC",
      "rlqd@u}{jS?KxAAnA?xAE`BE",
      "xwqd@o~{jS?o@",
      "xwqd@_`|jS?n@",
      "xwqd@o~{jSN?b@Ap@@\\?RAtA@dABB?`@@f@@dBFr@Dx@BZ@N?hBA\\?zBC|AEx@CT?x@?dBEjAA",
      "x`sd@k~{jSL?d@AhCED?",
      "|fsd@s~{jSAMImCCcA?WCu@CcAAW?SC{@Ci@EaAAc@AUK{BGmA?ACy@?ICeAA[As@CkBGaDAk@Ac@Cy@AOEc@E[C[QgBGk@CUAM?EAGe@sEKkAGw@Em@?CEo@?UG_A",
      "z_sd@sf~jSZEJbAFjA?HFv@@H?HRtB?J^|DNtAHx@?FH|@?FFl@?B@PBJ@`@Bj@?^@X?PBfB@PBxA",
      "lesd@w`}jS@Z@l@B~@F|ADrAH|BDp@@d@Bl@@d@",
      "zfsd@qm|jSjAGZAZAp@ClCIhAE",
      "hssd@qn|jS?z@aCHgADcAD}BJY@sA?}@E",
      "pasd@wk|jS}FKgCC",
      "jurd@gl|jS?\\?dA",
      "jurd@ci|jSjENxAB",
      "p~rd@oh|jS@^"
    ],
    "mapDirection": [
      [
        {
          "distance": 180,
          "htmlInstructions": "Head southwest on Jl. Trikora toward Jl. Duri Utara Gg. 5",
          "longitude": 106.8039122,
          "latitude": -6.1552746
        },
        {
          "distance": 260,
          "htmlInstructions": "Turn left onto Jl. Duri (Tss Raya)
Pass by Perum Pegadaian - CPP Gang Ketapang (on the right)
", "longitude": 106.8036807, "latitude": -6.1567446 }, { "distance": 63, "htmlInstructions": "Turn right onto Jl. Duri Selatan I", "longitude": 106.8060229, "latitude": -6.1565824 } ], [ { "distance": 76, "htmlInstructions": "Head south on Jl. Duri Selatan I toward Gg. Cahaya", "longitude": 106.8061051, "latitude": -6.1571396 } ], [ { "distance": 42, "htmlInstructions": "Head south on Jl. Duri Selatan I toward Jl. Jamblang Raya I", "longitude": 106.8061882, "latitude": -6.1578131 }, { "distance": 27, "htmlInstructions": "Turn left
Destination will be on the right
", "longitude": 106.8061701, "latitude": -6.158187 } ], [ { "distance": 27, "htmlInstructions": "Head west toward Jl. Duri Selatan I", "longitude": 106.8064099, "latitude": -6.1581771 }, { "distance": 41, "htmlInstructions": "Turn left onto Jl. Duri Selatan I", "longitude": 106.8061701, "latitude": -6.158187 }, { "distance": 99, "htmlInstructions": "Turn left onto Jl. Duri Selatan III Gg. IV", "longitude": 106.8061832, "latitude": -6.158552 }, { "distance": 53, "htmlInstructions": "Turn left onto Jl. Duri Selatan IV
Restricted usage road
Destination will be on the right
", "longitude": 106.807078, "latitude": -6.1585317 } ], [ { "distance": 53, "htmlInstructions": "Head south on Jl. Duri Selatan IV toward Jl. Duri Selatan III Gg. IV
Restricted usage road
", "longitude": 106.8070317, "latitude": -6.1580615 }, { "distance": 99, "htmlInstructions": "Turn right onto Jl. Duri Selatan III Gg. IV", "longitude": 106.807078, "latitude": -6.1585317 }, { "distance": 130, "htmlInstructions": "Turn right onto Jl. Duri Selatan I", "longitude": 106.8061832, "latitude": -6.158552 } ], [ { "distance": 90, "htmlInstructions": "Head north on Jl. Duri Selatan I toward Jl. Duri Selatan I C", "longitude": 106.8061459, "latitude": -6.1573842 }, { "distance": 232, "htmlInstructions": "Turn right after JNE Bromo (on the right)", "longitude": 106.8060229, "latitude": -6.1565824 }, { "distance": 206, "htmlInstructions": "Turn right after TOKO TONI KALI 2 (on the left)", "longitude": 106.8081124, "latitude": -6.1564176 }, { "distance": 27, "htmlInstructions": "Turn left
Destination will be on the left
", "longitude": 106.8082358, "latitude": -6.1582124 } ], [ { "distance": 27, "htmlInstructions": "Head west toward Jl. KH.Moh.Mansyur", "longitude": 106.8084835, "latitude": -6.1582118 }, { "distance": 730, "htmlInstructions": "Turn left onto Jl. KH.Moh.Mansyur
Pass by WARPULL (on the right in 350m)
", "longitude": 106.8082358, "latitude": -6.1582124 }, { "distance": 109, "htmlInstructions": "Continue straight onto Jl. Imam Mahbud/Jl. KH.Moh.Mansyur", "longitude": 106.8082215, "latitude": -6.164772 }, { "distance": 1281, "htmlInstructions": "Turn left onto Jl. KH. Hasyim Ashari (signs for Gajah Mada/Glodok)
Pass by St Mary's College (on the left in 600m)
", "longitude": 106.8082626, "latitude": -6.1657488 }, { "distance": 695, "htmlInstructions": "Make a U-turn
Pass by Alfa Link (on the left)
Destination will be on the left
", "longitude": 106.819778, "latitude": -6.1646156 } ], [ { "distance": 340, "htmlInstructions": "Head west on Jl. KH. Hasyim Ashari toward Jl. A.M Sangaji
Pass by Suzuki Roxy Mobil Terima Trade-in , Cash & Kredit (on the left)
", "longitude": 106.813724, "latitude": -6.1655105 }, { "distance": 222, "htmlInstructions": "Turn left after Holland Bakery Cideng (on the left) (signs for Tanah)
Pass by YAMAHA CIDENG MOTOR (on the left)
", "longitude": 106.8106542, "latitude": -6.1657383 }, { "distance": 349, "htmlInstructions": "Sharp right onto Jl. Cideng Barat", "longitude": 106.810806, "latitude": -6.167726 }, { "distance": 217, "htmlInstructions": "Continue straight to stay on Jl. Cideng Barat
Pass by Sico Sumber Sakti (on the left)
", "longitude": 106.8103581, "latitude": -6.1648902 }, { "distance": 55, "htmlInstructions": "Turn left onto Jl. Petojo Barat V", "longitude": 106.8104354, "latitude": -6.1629367 }, { "distance": 165, "htmlInstructions": "Turn left onto Jl. Petojo Barat VII", "longitude": 106.8099352, "latitude": -6.1629367 }, { "distance": 18, "htmlInstructions": "Turn right onto Jl. Petojo Barat IX
Destination will be on the right
", "longitude": 106.8098428, "latitude": -6.1644133 } ] ], "executionData": { "departureTime": 1669946880, "completedTime": 1669985792, "startLatitude": -6.154994010925, "startLongitude": 106.80372619629, "startAddress1": "", "startAddress2": "", "startCity": "", "startState": "", "startCountry": "", "startPostcode": "", "endLatitude": -6.164274215698, "endLongitude": 106.80966949463, "endAddress1": "", "endAddress2": "", "endCity": "", "endState": "", "endCountry": "", "endPostcode": "", "driverNote": "", "createdDate": 1669985676, "updatedDate": 1669985676, "createdByUserID": 90, "updatedByUserID": 90, "processStatus": "completed", "vehicleID": 17 } }, "pins": [ { "defaultOrder": 0, "isSensorAllocated": "N", "storeID": null, "installedOnSite": "Y", "isInstallationChecklist": "Y", "collected": "Y", "missedReason": null, "collectionTime": 1669985523, "collectedBy": { "userID": 90, "username": "andre@smartsensor.com.au", "firstName": "Andre", "lastName": "TebakAyo" }, "lastCollectedData": { "ultrasound": 0, "averageDistance": 0, "laserDistance1": 0, "laserDistance2": 0, "laserAverageDistance": 0, "depthWhenEmpty_cm": 0, "distanceSensorToFillLine_cm": 0 }, "projectpinID": 1326, "projectID": 87, "projectName": "Test Project", "projectgroupID": 17, "groupName": "ads", "iconType": "custom", "iconID": 1, "iconURL": "https://wasteinsights-files.s3.ap-southeast-2.amazonaws.com/uploads/customicons/16/01941e67f6472e3944539a044d895f96.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=1234567890AbcdEfghij%2F20230817%2Fap-southeast-2%2Fs3%2Faws4_request&X-Amz-Date=20230817T132440Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Signature=123456789009876543214c286c6e40b37a46e04525cb28368990e206d741f216", "customlocationID": 0, "locationName": "", "pinAddress1": "", "pinAddress2": "", "pinCity": "", "pinState": "", "pinCountry": "", "pinZipCode": "", "latitude": -6.156838134907, "longitude": 106.80628817528, "name": "test bin F", "description": "", "serialNumber": "", "assetTag": "", "manufacturerID": 0, "manufacturerName": "", "createdDate": 1607422183, "creatorUserID": 90, "pinType": { "pintypeID": 134, "pinTypeName": "bb test", "depthWhenEmpty_cm": 20, "distanceSensorToFillLine_cm": 2 } }, { "defaultOrder": 1, "isSensorAllocated": "Y", "storeID": "393", "installedOnSite": "Y", "isInstallationChecklist": "Y", "collected": "Y", "missedReason": null, "collectionTime": 1669985404, "collectedBy": { "userID": 90, "username": "andre@smartsensor.com.au", "firstName": "Andre", "lastName": "TebakAyo" }, "lastCollectedData": { "ultrasound": 59, "averageDistance": 105, "laserDistance1": 121, "laserDistance2": 136, "laserAverageDistance": 128, "depthWhenEmpty_cm": 20, "distanceSensorToFillLine_cm": 2 }, "projectpinID": 1325, "projectID": 87, "projectName": "Test Project", "projectgroupID": 17, "groupName": "ads", "iconType": "system", "iconID": 4, "iconURL": "https://wasteinsights-public-files.s3.ap-southeast-2.amazonaws.com/images/icons/default/appsize/bigbelly.png", "customlocationID": 0, "locationName": "", "pinAddress1": "", "pinAddress2": "", "pinCity": "", "pinState": "", "pinCountry": "", "pinZipCode": "", "latitude": -6.157625822101, "longitude": 106.80576279759, "name": "test bin E", "description": "it's it's \ntest", "serialNumber": "serial name andre", "assetTag": "", "manufacturerID": 0, "manufacturerName": "", "createdDate": 1623326342, "creatorUserID": 90, "pinType": { "pintypeID": 134, "pinTypeName": "bb test", "depthWhenEmpty_cm": 20, "distanceSensorToFillLine_cm": 2 } }, { "defaultOrder": 2, "isSensorAllocated": "Y", "storeID": null, "installedOnSite": "N", "isInstallationChecklist": "Y", "collected": "Y", "missedReason": null, "collectionTime": 1669985502, "collectedBy": { "userID": 90, "username": "andre@smartsensor.com.au", "firstName": "Andre", "lastName": "TebakAyo" }, "lastCollectedData": { "ultrasound": 59, "averageDistance": 105, "laserDistance1": 121, "laserDistance2": 136, "laserAverageDistance": 128, "depthWhenEmpty_cm": 20, "distanceSensorToFillLine_cm": 2 }, "projectpinID": 4075, "projectID": 87, "projectName": "Test Project", "projectgroupID": 0, "groupName": "", "iconType": "system", "iconID": 2, "iconURL": "https://wasteinsights-public-files.s3.ap-southeast-2.amazonaws.com/images/icons/default/appsize/enclosure.png", "customlocationID": 0, "locationName": "", "pinAddress1": "", "pinAddress2": "", "pinCity": "", "pinState": "", "pinCountry": "", "pinZipCode": "", "latitude": -6.158265837919, "longitude": 106.80641524494, "name": "OkOc", "description": "", "serialNumber": "", "assetTag": "", "manufacturerID": 0, "manufacturerName": "", "createdDate": 1621602198, "creatorUserID": 90, "pinType": { "pintypeID": 134, "pinTypeName": "bb test", "depthWhenEmpty_cm": 20, "distanceSensorToFillLine_cm": 2 } }, { "defaultOrder": 3, "isSensorAllocated": "N", "storeID": null, "installedOnSite": "Y", "isInstallationChecklist": "Y", "collected": "Y", "missedReason": null, "collectionTime": 1669985642, "collectedBy": { "userID": 90, "username": "andre@smartsensor.com.au", "firstName": "Andre", "lastName": "TebakAyo" }, "lastCollectedData": { "ultrasound": 0, "averageDistance": 0, "laserDistance1": 0, "laserDistance2": 0, "laserAverageDistance": 0, "depthWhenEmpty_cm": 0, "distanceSensorToFillLine_cm": 0 }, "projectpinID": 1834, "projectID": 87, "projectName": "Test Project", "projectgroupID": 0, "groupName": "", "iconType": "custom", "iconID": 1, "iconURL": "https://wasteinsights-files.s3.ap-southeast-2.amazonaws.com/uploads/customicons/16/01941e67f6472e3944539a044d895f96.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=1234567890AbcdEFGHij%2F20230817%2Fap-southeast-2%2Fs3%2Faws4_request&X-Amz-Date=20230817T132444Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Signature=123456789009876543214c286c6e40b37a46e04525cb28368990e206d741f216", "customlocationID": 0, "locationName": "", "pinAddress1": "", "pinAddress2": "", "pinCity": "", "pinState": "", "pinCountry": "", "pinZipCode": "", "latitude": -6.158055499472, "longitude": 106.80709384382, "name": "bb test", "description": "", "serialNumber": "", "assetTag": "", "manufacturerID": 0, "manufacturerName": "", "createdDate": 1618322110, "creatorUserID": 90, "pinType": { "pintypeID": 134, "pinTypeName": "bb test", "depthWhenEmpty_cm": 20, "distanceSensorToFillLine_cm": 2 } }, { "defaultOrder": 4, "isSensorAllocated": "N", "storeID": null, "installedOnSite": "Y", "isInstallationChecklist": "Y", "collected": "Y", "missedReason": null, "collectionTime": 1669985369, "collectedBy": { "userID": 90, "username": "andre@smartsensor.com.au", "firstName": "Andre", "lastName": "TebakAyo" }, "lastCollectedData": { "ultrasound": 59, "averageDistance": 105, "laserDistance1": 121, "laserDistance2": 136, "laserAverageDistance": 128, "depthWhenEmpty_cm": 150, "distanceSensorToFillLine_cm": 30 }, "projectpinID": 1173, "projectID": 87, "projectName": "Test Project", "projectgroupID": 17, "groupName": "ads", "iconType": "system", "iconID": 2, "iconURL": "https://wasteinsights-public-files.s3.ap-southeast-2.amazonaws.com/images/icons/default/appsize/enclosure.png", "customlocationID": 0, "locationName": "", "pinAddress1": "", "pinAddress2": "", "pinCity": "", "pinState": "", "pinCountry": "", "pinZipCode": "", "latitude": -6.174146649855, "longitude": 106.82397298515, "name": "test bin C", "description": "", "serialNumber": "", "assetTag": "", "manufacturerID": 0, "manufacturerName": "", "createdDate": 1607422283, "creatorUserID": 90, "pinType": { "pintypeID": 91, "pinTypeName": "test bin", "depthWhenEmpty_cm": 0, "distanceSensorToFillLine_cm": 0 } }, { "defaultOrder": 5, "isSensorAllocated": "Y", "storeID": null, "installedOnSite": "N", "isInstallationChecklist": "Y", "collected": "Y", "missedReason": null, "collectionTime": 1669985625, "collectedBy": { "userID": 90, "username": "andre@smartsensor.com.au", "firstName": "Andre", "lastName": "TebakAyo" }, "lastCollectedData": { "ultrasound": 76, "averageDistance": 115, "laserDistance1": 134, "laserDistance2": 137, "laserAverageDistance": 135, "depthWhenEmpty_cm": 100, "distanceSensorToFillLine_cm": 10 }, "projectpinID": 4903, "projectID": 87, "projectName": "Test Project", "projectgroupID": 0, "groupName": "", "iconType": "pintype", "iconID": 0, "iconURL": "https://wasteinsights-public-files.s3.ap-southeast-2.amazonaws.com/images/icons/default/appsize/charity.png", "customlocationID": 0, "locationName": "", "pinAddress1": "", "pinAddress2": "", "pinCity": "", "pinState": "", "pinCountry": "", "pinZipCode": "", "latitude": -6.150127245999, "longitude": 106.83107178658, "name": "Multi Sensor", "description": "", "serialNumber": "", "assetTag": "", "manufacturerID": 0, "manufacturerName": "", "createdDate": 1627149076, "creatorUserID": 90, "pinType": { "pintypeID": 207, "pinTypeName": "Multi Sensor", "depthWhenEmpty_cm": 100, "distanceSensorToFillLine_cm": 10 } }, { "defaultOrder": 6, "isSensorAllocated": "Y", "storeID": null, "installedOnSite": "N", "isInstallationChecklist": "Y", "collected": "Y", "missedReason": null, "collectionTime": 1669985582, "collectedBy": { "userID": 90, "username": "andre@smartsensor.com.au", "firstName": "Andre", "lastName": "TebakAyo" }, "lastCollectedData": { "ultrasound": 67, "averageDistance": 112, "laserDistance1": 133, "laserDistance2": 137, "laserAverageDistance": 135, "depthWhenEmpty_cm": 20, "distanceSensorToFillLine_cm": 2 }, "projectpinID": 4945, "projectID": 87, "projectName": "Test Project", "projectgroupID": 0, "groupName": "", "iconType": "system", "iconID": 2, "iconURL": "https://wasteinsights-public-files.s3.ap-southeast-2.amazonaws.com/images/icons/default/appsize/enclosure.png", "customlocationID": 0, "locationName": "", "pinAddress1": "", "pinAddress2": "", "pinCity": "", "pinState": "", "pinCountry": "", "pinZipCode": "", "latitude": -6.165671298166, "longitude": 106.81373264641, "name": "Test media", "description": "", "serialNumber": "", "assetTag": "", "manufacturerID": 0, "manufacturerName": "", "createdDate": 1630573100, "creatorUserID": 90, "pinType": { "pintypeID": 134, "pinTypeName": "bb test", "depthWhenEmpty_cm": 20, "distanceSensorToFillLine_cm": 2 } } ] } }

Note:
IMPORTANT! latitude and longitude in mapDirection is not always exist. Old data do not have this one, but new one since 9 June 2017 has. So please be careful when processing data.