Discussions

Ask a Question
Back to All

set unknow location on checkin/checkout via api

i tried the below code to check in from unknown location.

https://am-api.corrigopro.com/Direct/api/workOrder/checkin

"Location": {
"Latitude": -1,
"Longitude": -1
},
"PerformedBy": {
"Name": "Telgian"
},
"WorkOrderId": 20840334,
"MessageId": "208403312084033120840331"
}

i want to show a message like "user1 has checked in from an unknown location, 6:25 PM" in Corrigo message window. I googled it and find this solution to pass -1.

it checked in successfully but with the message "user1 has checked in 7,682.65 miles from the service location, 6:16 PM"

how can i achieve this? any help will be appreciated.