OS1 Services
Movement Tracking System
MTS Snapped Distance
3min
mts snapped distance with the getsnappeddistance api, you can easily obtain the distance covered by a device during specific time intervals this feature enables you to precisely calculate the distance traveled, which can be useful for determining driver payouts or more accurately measuring fuel usage request parameters parameter description deviceid the id of the device to retrieve distance for app your appid provided after registration starttime the start time of the period to calculate distance over (iso 8601 format) limits this timestamp cannot be older than 2 days from current time endtime the end time of the period to calculate distance over (iso 8601 format) response details field description totaltraces the total number of trace points for the device in the specified time period rsoutput output from the routestats snapped distance algorithm confidence the confidence level of the calculated distance possible values are high , medium , medium 1 , medium 2 , medium 3 , or low distance the snapped distance traveled by the device in meters, calculated by routestats example response get snapped distance { "totaltraces" 250, "rsoutput" { "confidence" "high", "distance" 37400, "errorreason" \[] } } the response shows a snapped distance of 37 4 km calculated with high confidence the totaltraces indicates there were 250 location traces analyzed to calculate the distance