position distance and totalDistance

hi every one
There are two values ​​of distance and totalDistance in the attributes related to position.
About setting these two attributes in the huabao protocol. If we turn off and deactivate the device that is active in city a and take the turned off device to city z and then turn it on in city z, does the distance between two cities a and z affect the value of these two attributes? If the answer is yes, how can we prevent this?
thanks.

Anton Tananaeva year ago

Distance is the distance from the last location. Total distance is accumulated distance value.