api/positions distance and totalDistance attributes value always return 0

Primtek7 years ago

Hello,

Why the value of distance and totalDistance attributes value always return 0?

I checked into positions table.. it shown both motion=true and false the values are 0?

{"hdop":0.0,"distance":0.0,"totalDistance":0.0,"motion":true}
{"hdop":0.0,"distance":0.0,"totalDistance":0.0,"motion":false}

I checked into routes reports the distance value also shown 0

please help

thanks

Anton Tananaev7 years ago

Probably because coordinates are not changing.

Primtek7 years ago

I am pretty sure the coordinates are changing..

I also configured:

<entry key='distance.enable'>true</entry>

and below are the latitude,longitude in positions table:

-6.2105834	106.8219397
-6.2105778	106.8219264
-6.2105756	106.8219532
-6.2105769	106.8219275
-6.2104997	106.8220423
-6.2104997	106.8220423
-6.2105764	106.8219264
-6.2105764	106.8219264
-6.210571	106.8219383
-6.2103796	106.8218515
-6.2109413	106.8233804
-6.210574	106.8219271
-6.2105877	106.8219176
-6.2105877	106.8219195
Anton Tananaev7 years ago

What you provided does prove either. There are many factors like other configuration parameters, timestamps etc.

Primtek7 years ago

Hi..
after I upgraded .. now I have totalDistance but neither distance.. what should I check?

Anton Tananaev7 years ago

Sorry, what do you mean by neither?